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

@ -10,8 +10,8 @@ const {
const TimelockController = artifacts.require('TimelockController');
const CallReceiverMock = artifacts.require('CallReceiverMock');
const Implementation2 = artifacts.require('Implementation2');
const ERC721Mock = artifacts.require('ERC721Mock');
const ERC1155Mock = artifacts.require('ERC1155Mock');
const ERC721 = artifacts.require('$ERC721');
const ERC1155 = artifacts.require('$ERC1155');
const MINDELAY = time.duration.days(1);
@ -1087,8 +1087,8 @@ contract('TimelockController', function (accounts) {
const tokenId = new BN(1);
beforeEach(async function () {
this.token = await ERC721Mock.new(name, symbol);
await this.token.mint(other, tokenId);
this.token = await ERC721.new(name, symbol);
await this.token.$_mint(other, tokenId);
});
it('can receive an ERC721 safeTransfer', async function () {
@ -1105,8 +1105,8 @@ contract('TimelockController', function (accounts) {
};
beforeEach(async function () {
this.token = await ERC1155Mock.new(uri);
await this.token.mintBatch(other, Object.keys(tokenIds), Object.values(tokenIds), '0x');
this.token = await ERC1155.new(uri);
await this.token.$_mintBatch(other, Object.keys(tokenIds), Object.values(tokenIds), '0x');
});
it('can receive ERC1155 safeTransfer', async function () {