Skip to content

Commit 509b91d

Browse files
authored
Refactor getNonce function for cleaner syntax
1 parent afd0735 commit 509b91d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/governance/extensions/GovernorNoncesKeyed.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,10 @@ describe('GovernorNoncesKeyed', function () {
9191

9292
const maskedProposalId = BigInt(this.helper.id) & (2n ** 192n - 1n);
9393

94-
this.getNonce = async address => {
95-
return nonceType === 'default'
94+
this.getNonce = address =>
95+
nonceType === 'default'
9696
? this.mock.nonces(address)
9797
: this.mock['nonces(address,uint192)'](address, maskedProposalId);
98-
};
9998
});
10099

101100
it('votes with an EOA signature', async function () {

0 commit comments

Comments
 (0)