Separate ERC721Mintable (#1365)
* separate part of ERC721Mintable into ERC721MetadataMintable * remove mint and burn from 721 tests * Fixed linter error. * fix ERC721 mint tests * Minor fixes.
This commit is contained in:
committed by
Nicolás Venturo
parent
b41b125c15
commit
744f567f40
@ -1,6 +1,5 @@
|
||||
const { assertRevert } = require('../../helpers/assertRevert');
|
||||
const { shouldBehaveLikeERC721 } = require('./ERC721.behavior');
|
||||
const { shouldBehaveLikeMintAndBurnERC721 } = require('./ERC721MintBurn.behavior');
|
||||
const { shouldSupportInterfaces } = require('../../introspection/SupportsInterface.behavior');
|
||||
|
||||
const BigNumber = web3.BigNumber;
|
||||
@ -221,7 +220,6 @@ contract('ERC721Full', function ([
|
||||
});
|
||||
|
||||
shouldBehaveLikeERC721(creator, minter, accounts);
|
||||
shouldBehaveLikeMintAndBurnERC721(creator, minter, accounts);
|
||||
|
||||
shouldSupportInterfaces([
|
||||
'ERC165',
|
||||
|
||||
@ -52,13 +52,13 @@ function shouldBehaveLikeMintAndBurnERC721 (
|
||||
|
||||
describe('when the given owner address is the zero address', function () {
|
||||
it('reverts', async function () {
|
||||
await assertRevert(this.token.mint(ZERO_ADDRESS, thirdTokenId));
|
||||
await assertRevert(this.token.mint(ZERO_ADDRESS, thirdTokenId, { from: minter }));
|
||||
});
|
||||
});
|
||||
|
||||
describe('when the given token ID was already tracked by this contract', function () {
|
||||
it('reverts', async function () {
|
||||
await assertRevert(this.token.mint(owner, firstTokenId));
|
||||
await assertRevert(this.token.mint(owner, firstTokenId, { from: minter }));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user