Improve revert reason in ERC721 (#2975)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
robriks
2021-12-09 18:42:18 -05:00
committed by GitHub
parent 4625192940
commit 0c858e2071
3 changed files with 3 additions and 2 deletions

View File

@ -183,7 +183,7 @@ function shouldBehaveLikeERC721 (errorPrefix, owner, newOwner, approved, another
it('reverts', async function () {
await expectRevert(
transferFunction.call(this, other, other, tokenId, { from: owner }),
'ERC721: transfer of token that is not own',
'ERC721: transfer from incorrect owner',
);
});
});