Fix ERC4906 compliance of ERC721URIStorage (#4055)

Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-02-17 17:43:23 +01:00
committed by GitHub
parent 96a2297e15
commit 08d085f2c9
3 changed files with 15 additions and 3 deletions

View File

@ -1,7 +1,8 @@
const { BN, expectEvent, expectRevert } = require('@openzeppelin/test-helpers');
const { expect } = require('chai');
const { shouldSupportInterfaces } = require('../../../utils/introspection/SupportsInterface.behavior');
const ERC721URIStorageMock = artifacts.require('$ERC721URIStorageMock');
contract('ERC721URIStorage', function (accounts) {
@ -17,6 +18,8 @@ contract('ERC721URIStorage', function (accounts) {
this.token = await ERC721URIStorageMock.new(name, symbol);
});
shouldSupportInterfaces(['0x49064906']);
describe('token URI', function () {
beforeEach(async function () {
await this.token.$_mint(owner, firstTokenId);