Improve error messages for ERC721 and 1155 (#3254)
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
@ -19,7 +19,7 @@ abstract contract ERC1155Burnable is ERC1155 {
|
||||
) public virtual {
|
||||
require(
|
||||
account == _msgSender() || isApprovedForAll(account, _msgSender()),
|
||||
"ERC1155: caller is not owner nor approved"
|
||||
"ERC1155: caller is not token owner nor approved"
|
||||
);
|
||||
|
||||
_burn(account, id, value);
|
||||
@ -32,7 +32,7 @@ abstract contract ERC1155Burnable is ERC1155 {
|
||||
) public virtual {
|
||||
require(
|
||||
account == _msgSender() || isApprovedForAll(account, _msgSender()),
|
||||
"ERC1155: caller is not owner nor approved"
|
||||
"ERC1155: caller is not token owner nor approved"
|
||||
);
|
||||
|
||||
_burnBatch(account, ids, values);
|
||||
|
||||
Reference in New Issue
Block a user