Staking ProtocolinterfacesexternalInterfaces

IERC721Errors

ERC721InvalidOwner

error ERC721InvalidOwner(address owner)

Indicates that an address can't be an owner. For example, address(0) is a forbidden owner in ERC-20. Used in balance queries.

Parameters

NameTypeDescription
owneraddressAddress of the current owner of a token.

ERC721NonexistentToken

error ERC721NonexistentToken(uint256 tokenId)

Indicates a tokenId whose owner is the zero address.

Parameters

NameTypeDescription
tokenIduint256Identifier number of a token.

ERC721IncorrectOwner

error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner)

Indicates an error related to the ownership over a particular token. Used in transfers.

Parameters

NameTypeDescription
senderaddressAddress whose tokens are being transferred.
tokenIduint256Identifier number of a token.
owneraddressAddress of the current owner of a token.

ERC721InvalidSender

error ERC721InvalidSender(address sender)

Indicates a failure with the token sender. Used in transfers.

Parameters

NameTypeDescription
senderaddressAddress whose tokens are being transferred.

ERC721InvalidReceiver

error ERC721InvalidReceiver(address receiver)

Indicates a failure with the token receiver. Used in transfers.

Parameters

NameTypeDescription
receiveraddressAddress to which tokens are being transferred.

ERC721InsufficientApproval

error ERC721InsufficientApproval(address operator, uint256 tokenId)

Indicates a failure with the operator’s approval. Used in transfers.

Parameters

NameTypeDescription
operatoraddressAddress that may be allowed to operate on tokens without being their owner.
tokenIduint256Identifier number of a token.

ERC721InvalidApprover

error ERC721InvalidApprover(address approver)

Indicates a failure with the approver of a token to be approved. Used in approvals.

Parameters

NameTypeDescription
approveraddressAddress initiating an approval operation.

ERC721InvalidOperator

error ERC721InvalidOperator(address operator)

Indicates a failure with the operator to be approved. Used in approvals.

Parameters

NameTypeDescription
operatoraddressAddress that may be allowed to operate on tokens without being their owner.

On this page