diff --git a/test/governance/extensions/GovernorNoncesKeyed.test.js b/test/governance/extensions/GovernorNoncesKeyed.test.js index e2cbd8ff07d..955af4bf79c 100644 --- a/test/governance/extensions/GovernorNoncesKeyed.test.js +++ b/test/governance/extensions/GovernorNoncesKeyed.test.js @@ -91,11 +91,10 @@ describe('GovernorNoncesKeyed', function () { const maskedProposalId = BigInt(this.helper.id) & (2n ** 192n - 1n); - this.getNonce = async address => { - return await (nonceType === 'default' + this.getNonce = address => + nonceType === 'default' ? this.mock.nonces(address) - : this.mock['nonces(address,uint192)'](address, maskedProposalId)); - }; + : this.mock['nonces(address,uint192)'](address, maskedProposalId); }); it('votes with an EOA signature', async function () {