Skip to content

Commit c906400

Browse files
Doryu001Amxx
andauthored
Drop redundant await in GovernorNoncesKeyed helper (#6064)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
1 parent f48c229 commit c906400

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/governance/extensions/GovernorNoncesKeyed.test.js

Lines changed: 3 additions & 4 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 await (nonceType === 'default'
94+
this.getNonce = address =>
95+
nonceType === 'default'
9696
? this.mock.nonces(address)
97-
: this.mock['nonces(address,uint192)'](address, maskedProposalId));
98-
};
97+
: this.mock['nonces(address,uint192)'](address, maskedProposalId);
9998
});
10099

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

0 commit comments

Comments
 (0)