Finalize test migration: remove legacy dependencies and test helpers (#4797)

This commit is contained in:
Hadrien Croubois
2023-12-26 23:46:06 +01:00
committed by GitHub
parent abcf9dd8b7
commit a72c9561b9
96 changed files with 951 additions and 6503 deletions

View File

@ -3,7 +3,7 @@ const { expect } = require('chai');
const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');
const { getDomain, domainSeparator, Permit } = require('../../../helpers/eip712');
const { bigint: time } = require('../../../helpers/time');
const time = require('../../../helpers/time');
const name = 'My Token';
const symbol = 'MTKN';
@ -81,7 +81,7 @@ describe('ERC20Permit', function () {
await expect(this.token.permit(this.owner, this.spender, value, maxDeadline, v, r, s))
.to.be.revertedWithCustomError(this.token, 'ERC2612InvalidSigner')
.withArgs(recovered, this.owner.address);
.withArgs(recovered, this.owner);
});
it('rejects other signature', async function () {
@ -91,7 +91,7 @@ describe('ERC20Permit', function () {
await expect(this.token.permit(this.owner, this.spender, value, maxDeadline, v, r, s))
.to.be.revertedWithCustomError(this.token, 'ERC2612InvalidSigner')
.withArgs(this.other.address, this.owner.address);
.withArgs(this.other, this.owner);
});
it('rejects expired permit', async function () {