Remove unused return value and reuse helper function (#4588)

Co-authored-by: Francisco Giordano <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-09-08 23:24:23 +02:00
committed by GitHub
parent 01659449d4
commit bba33516b1
3 changed files with 3 additions and 8 deletions

View File

@ -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');
});