Migrate ERC165 tests (#4794)

This commit is contained in:
Hadrien Croubois
2023-12-19 02:28:16 +01:00
committed by GitHub
parent c3cd70811b
commit 5bca2119ca
4 changed files with 109 additions and 154 deletions

View File

@ -1,10 +1,17 @@
const { ethers } = require('hardhat');
const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');
const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
const ERC165 = artifacts.require('$ERC165');
async function fixture() {
return {
mock: await ethers.deployContract('$ERC165'),
};
}
contract('ERC165', function () {
beforeEach(async function () {
this.mock = await ERC165.new();
Object.assign(this, await loadFixture(fixture));
});
shouldSupportInterfaces(['ERC165']);