Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmorgan committed Aug 10, 2021
1 parent 95a0073 commit 4232265
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/core/KnownOriginDigitalAssetV3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) {
it('batch minted - cannot send to zero address', async () => {
await expectRevert(
this.token.transferFrom(owner, ZERO_ADDRESS, firstEditionTokenId, {from: owner}),
'ERC721_Invalid to address'
'Invalid to address'
);
});

Expand Down Expand Up @@ -301,7 +301,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) {
it('batch minted - cannot send to zero address', async () => {
await expectRevert(
this.token.transferFrom(owner, ZERO_ADDRESS, firstEditionTokenId, {from: owner}),
'ERC721_Invalid to address'
'Invalid to address'
);
});

Expand Down Expand Up @@ -748,7 +748,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) {
// covering this here to prove you can not reset the zero address and go back to a token already with a primary sale
await this.token.transferFrom(collectorA, collectorB, firstEditionTokenId, {from: collectorA}); // sell one
await expectRevert(this.token.transferFrom(collectorB, ZERO_ADDRESS, firstEditionTokenId, {from: collectorB}),
'ERC721_Invalid to address'
'Invalid to address'
); // send back
});
});
Expand Down Expand Up @@ -893,7 +893,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) {
// covering this here to prove you can not reset the zero address and go back to a token already with a primary sale
await this.token.transferFrom(collectorA, collectorB, firstEditionTokenId, {from: collectorA}); // sell one
await expectRevert(this.token.transferFrom(collectorB, ZERO_ADDRESS, firstEditionTokenId, {from: collectorB}),
'ERC721_Invalid to address'
'Invalid to address'
); // send back
});
});
Expand Down
6 changes: 3 additions & 3 deletions test/sanity/ERC721.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ contract('ERC721 baseline tests', function (accounts) {
it('reverts', async () => {
await expectRevert(
transferFunction.call(this, owner, ZERO_ADDRESS, tokenId, {from: owner}),
'ERC721_Invalid to address',
'Invalid to address',
);
});
});
Expand Down Expand Up @@ -944,7 +944,7 @@ contract('ERC721 baseline tests', function (accounts) {
it('reverts', async () => {
await expectRevert(
transferFunction.call(this, owner, ZERO_ADDRESS, tokenId, {from: owner}),
'ERC721_Invalid to address',
'Invalid to address',
);
});
});
Expand Down Expand Up @@ -1469,7 +1469,7 @@ contract('ERC721 baseline tests', function (accounts) {
it('reverts', async () => {
await expectRevert(
transferFunction.call(this, owner, ZERO_ADDRESS, tokenId, {from: owner}),
'ERC721_Invalid to address',
'Invalid to address',
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/sanity/OZ_ERC721.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ contract('OpenZeppelin ERC721 spec test', (accounts) => {
it('reverts', async () => {
await expectRevert(
transferFunction.call(this, owner, ZERO_ADDRESS, tokenId, {from: owner}),
wrapReason('ERC721_Invalid to address'),
wrapReason('Invalid to address'),
);
});
});
Expand Down

0 comments on commit 4232265

Please sign in to comment.