Use hardhat-exposed to reduce the need for mocks (#3666)

Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-01-03 15:38:13 +01:00
committed by GitHub
parent a81b0d0b21
commit c1d9da4052
190 changed files with 2297 additions and 4311 deletions

View File

@ -1,12 +1,14 @@
const { BN, expectRevert } = require('@openzeppelin/test-helpers');
const MulticallTokenMock = artifacts.require('MulticallTokenMock');
contract('MulticallToken', function (accounts) {
const [deployer, alice, bob] = accounts;
const ERC20MulticallMock = artifacts.require('$ERC20MulticallMock');
contract('Multicall', function (accounts) {
const [ deployer, alice, bob ] = accounts;
const amount = 12000;
beforeEach(async function () {
this.multicallToken = await MulticallTokenMock.new(new BN(amount), { from: deployer });
this.multicallToken = await ERC20MulticallMock.new('name', 'symbol');
await this.multicallToken.$_mint(deployer, amount);
});
it('batches function calls', async function () {