Merge remote-tracking branch 'solidity/release-v2.0.0' into oz-sol-rc3

This commit is contained in:
Nicolás Venturo
2018-10-04 12:00:12 -03:00
19 changed files with 187 additions and 93 deletions

View File

@ -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',

View File

@ -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 }));
});
});
});