Migrate ERC20 extensions tests to ethers v6 (#4773)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Renan Souza
2023-12-13 19:31:56 -03:00
committed by GitHub
parent 6ba452dea4
commit 88512b23d2
19 changed files with 989 additions and 1334 deletions

View File

@ -3,6 +3,7 @@ const { expect } = require('chai');
const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');
const { getDomain, domainSeparator, hashTypedData } = require('../../helpers/eip712');
const { formatType } = require('../../helpers/eip712-types');
const { getChainId } = require('../../helpers/chainid');
const LENGTHS = {
@ -77,10 +78,10 @@ describe('EIP712', function () {
it('digest', async function () {
const types = {
Mail: [
{ name: 'to', type: 'address' },
{ name: 'contents', type: 'string' },
],
Mail: formatType({
to: 'address',
contents: 'string',
}),
};
const message = {