Merge remote-tracking branch 'solidity/release-v2.0.0' into oz-sol-rc3
This commit is contained in:
@ -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 _ = require('lodash');
|
||||
|
||||
@ -217,7 +216,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