Improve error messages for ERC721 and 1155 (#3254)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
@ -20,7 +20,7 @@ abstract contract ERC721Burnable is Context, ERC721 {
|
||||
*/
|
||||
function burn(uint256 tokenId) public virtual {
|
||||
//solhint-disable-next-line max-line-length
|
||||
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
|
||||
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
|
||||
_burn(tokenId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user