Remove unused return value and reuse helper function (#4588)
Co-authored-by: Francisco Giordano <fg@frang.io>
This commit is contained in:
@ -42,8 +42,7 @@ contract('Nonces', function (accounts) {
|
||||
const currentNonce = await this.nonces.nonces(sender);
|
||||
expect(currentNonce).to.be.bignumber.equal('0');
|
||||
|
||||
const { receipt } = await this.nonces.$_useCheckedNonce(sender, currentNonce);
|
||||
expectEvent(receipt, 'return$_useCheckedNonce', [currentNonce]);
|
||||
await this.nonces.$_useCheckedNonce(sender, currentNonce);
|
||||
|
||||
expect(await this.nonces.nonces(sender)).to.be.bignumber.equal('1');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user