Migrate ERC1155 tests to ethers v6 (#4771)

Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Hadrien Croubois
2023-12-21 22:57:39 +01:00
committed by GitHub
parent e70a0118ef
commit be0572a8dc
13 changed files with 847 additions and 995 deletions

View File

@ -1,4 +1,7 @@
const mapType = str => (str == 'uint256' ? 'Uint' : `${str.charAt(0).toUpperCase()}${str.slice(1)}`);
const { capitalize } = require('../../helpers');
const mapType = str => (str == 'uint256' ? 'Uint' : capitalize(str));
const formatType = (keyType, valueType) => ({
name: `${mapType(keyType)}To${mapType(valueType)}Map`,
keyType,