Errors index

Every custom error the Surface contracts can revert with, its contract, and the condition that raises it.

AddressEmptyCode · CloneFactory
Standard OpenZeppelin Address error, unreachable since a clone always has code.

AlreadyAdmin · Surface
addAdmin was called for the owner or an existing admin.

AlreadyDeprecated · CloneFactory
deprecate was already called.

AlreadyDeprecated · SurfaceFactory
deprecate was called on an already-deprecated factory.

BadMintWindow · FixedPriceMinter
initialize or setMintWindow was given a nonzero mintEnd not strictly after mintStart.

BadMintWindow · FixedPriceSale
A window end at or before its start.

BadSupplyCap · Surface
setSupplyCap was given a nonzero cap below current usage: mints ever on the sequential form, live supply on the pooled form.

BadSupplyCap · SurfaceV2
A nonzero supply cap below the lifetime mint count.

CollectionRequired · FixedPriceMinter
initialize was given the zero address as the collection.

CollectionRequired · FixedPriceSale
initialize was given a zero collection.

ERC721IncorrectOwner · Surface
Standard ERC721 error: a token operation named an owner that does not match the token's actual owner.

ERC721IncorrectOwner · SurfaceV2
Standard ERC721 error: the from address does not hold the token.

ERC721InsufficientApproval · Surface
Standard ERC721 error: the caller lacks approval to transfer or burn the token.

ERC721InsufficientApproval · SurfaceV2
Standard ERC721 error: the caller may not move or burn the token.

ERC721InvalidApprover · Surface
Standard ERC721 error: the approver is not authorized to grant the approval.

ERC721InvalidApprover · SurfaceV2
Standard ERC721 error: an invalid approver.

ERC721InvalidOperator · Surface
Standard ERC721 error: an invalid operator address (for example the zero address) was used in an approval.

ERC721InvalidOperator · SurfaceV2
Standard ERC721 error: an invalid operator.

ERC721InvalidOwner · Surface
Standard ERC721 error: an invalid owner address (for example the zero address) was used in an ownership query.

ERC721InvalidOwner · SurfaceV2
Standard ERC721 error: an invalid owner, such as zero in balanceOf.

ERC721InvalidReceiver · Surface
Standard ERC721 error: a safe transfer targeted a contract that does not accept ERC721 tokens (bad onERC721Received).

ERC721InvalidReceiver · SurfaceV2
Standard ERC721 error: a zero recipient, or a safe transfer to a contract that does not accept tokens.

ERC721InvalidSender · Surface
Standard ERC721 error: a transfer named a sender that does not own the token.

ERC721InvalidSender · SurfaceV2
Standard ERC721 error: an invalid sender.

ERC721NonexistentToken · Surface
Standard ERC721 error: the token id does not exist (never minted or already burned).

ERC721NonexistentToken · SurfaceV2
Standard ERC721 error: the token does not exist.

ExceedsCap · Surface
A mint would cross the supply cap: mints ever on the sequential form, live supply on the pooled form.

ExceedsCap · SurfaceV2
The mint would pass the supply cap.

FactoryDeprecated · CloneFactory
A create after deprecation.

FactoryDeprecated · SurfaceFactory
A create function was called after deprecation.

FactoryPaused · CloneFactory
A create while paused.

FactoryPaused · SurfaceFactory
A create function was called while the factory is paused (see setPaused).

FailedCall · CloneFactory
Standard OpenZeppelin Address error: the init call reverted with no reason.

FailedDeployment · CloneFactory
Standard OpenZeppelin Clones error: the clone could not be created, for example a reused deterministic salt.

FailedDeployment · SurfaceFactory
Inherited from OpenZeppelin Clones.

GateRejected · FixedPriceSale
The gate's check returned false.

InsufficientBalance · CloneFactory
Standard OpenZeppelin error, unreachable since no create sends value.

InsufficientBalance · SurfaceFactory
Inherited from OpenZeppelin Clones.

InvalidInitialization · FixedPriceMinter
OpenZeppelin Initializable error: initialize was called more than once, or on the implementation whose initializers are disabled.

InvalidInitialization · FixedPriceSale
Standard OpenZeppelin Initializable error: initialize on an initialized clone or on the implementation.

InvalidInitialization · Surface
OpenZeppelin Initializable error: initialize was called more than once, or on the implementation whose initializers are disabled.

InvalidInitialization · SurfaceV2
Standard OpenZeppelin Initializable error: initialize on an initialized clone or on the implementation.

MaxMintsExceeded · FixedPriceMinter
The call would cross this clone's maxMints ceiling.

MaxMintsExceeded · FixedPriceSale
The mint would pass this sale's ceiling.

MintEnded · FixedPriceMinter
mint was called at or after a nonzero mintEnd.

MintEnded · FixedPriceSale
At or after mintEnd.

MinterIsLocked · Surface
setMinter or lockMinter was called after lockMinter.

MinterRequired · SurfaceV2
initialize was given a zero minter.

MintNotStarted · FixedPriceMinter
mint was called before mintStart.

MintNotStarted · FixedPriceSale
Before mintStart.

NeverMinted · Surface
tokenSeed was read for an id that was never minted (its seed slot is zero).

NeverMinted · SurfaceV2
tokenSeed was asked for an id that was never minted.

NoStrayETH · FixedPriceMinter
rescueStrayETH found no ETH above the owed balances.

NoStrayETH · Surface
rescueStrayETH found a zero ETH balance.

NotAContract · CloneFactory
The constructor was given an implementation without code.

NotAContract · SurfaceFactory
The constructor was given an address with no code where a contract is required: an implementation (sequential, pooled, or minter), a nonzero default renderer, or a nonzero Catalog.

NotAContract · FixedPriceMinter
initialize or setPriceStrategy was given a nonzero address with no code where a contract is required (the collection, or a price strategy).

NotAContract · FixedPriceSale
A collection or gate address without code.

NotAContract · Surface
Declared on the shared collection interface for companion use.

NotAllowlisted · FixedPriceMinter
An allowlist root is set and the proof in data does not prove to is on the list.

NotAnAdmin · Surface
removeAdmin was called for an account that holds no grant.

NotAuthorized · AllowlistGate
setRoot from someone other than the collection's owner, including after a renounce.

NotAuthorized · FixedPriceMinter
A config setter or rescueStrayETH was called by an address that is neither the collection's owner nor one of its admins.

NotAuthorized · FixedPriceSale
A setter from someone other than the collection's owner, or an initialize that neither authority path allows.

NotAuthorized · Surface
An onlyOwnerOrAdmin function was called by neither the owner nor an admin; a pooled minter-set change was attempted by a non-owner; removeAdmin was called by someone other than the owner or the admin itself; notifyMetadataUpdate was called by neither the renderer nor an owner/admin; or burn was called without…

NotAuthorized · SurfaceV2
notifyMetadataUpdate from an address that is neither the renderer nor the owner.

NotDeployer · CloneFactory
setPaused or deprecate from someone other than the deployer.

NotDeployer · SurfaceFactory
deprecate or setPaused was called by an address other than the factory deployer.

NothingToWithdraw · FixedPriceMinter
withdraw was called for an account with a zero balance.

NothingToWithdraw · FixedPriceSale
The account has no owed balance.

NotInitializer · CloneFactory
initData does not start with initSelector, or the constructor was given a zero selector.

NotInitializing · FixedPriceMinter
OpenZeppelin Initializable error: an onlyInitializing step ran outside an active initialization.

NotInitializing · FixedPriceSale
Standard OpenZeppelin Initializable error, unreachable in normal use.

NotInitializing · Surface
OpenZeppelin Initializable error: an onlyInitializing step ran outside an active initialization.

NotInitializing · SurfaceV2
Standard OpenZeppelin Initializable error, unreachable in normal use.

NotMinter · Surface
The mint entrypoint was called by an address that is not an authorized minter.

NotMinter · SurfaceV2
mintTo from an address that is not the minter.

OnlySequential · Surface
setPrimaryMinter was called on a pooled collection, whose primary tracks its sole granted minter automatically instead of taking an explicit setter.

OwnableInvalidOwner · Launcher
Standard OpenZeppelin Ownable error: a zero owner.

OwnableInvalidOwner · Surface
Standard OpenZeppelin Ownable error: an invalid owner address (for example the zero address) was supplied.

OwnableInvalidOwner · SurfaceV2
Standard OpenZeppelin Ownable error: a zero owner at initialize or in transferOwnership.

OwnableUnauthorizedAccount · Launcher
Standard OpenZeppelin Ownable error: an owner-only function called by someone else.

OwnableUnauthorizedAccount · Surface
Standard OpenZeppelin Ownable error: an owner-gated function (addAdmin, transferOwnership, renounceOwnership) was called by a non-owner, or acceptOwnership by a non-pending-owner.

OwnableUnauthorizedAccount · SurfaceV2
Standard OpenZeppelin Ownable error: an owner-only function called by someone else, including after a renounce.

OwnerRequired · SurfaceFactory
A create function was given the zero address as the collection owner.

OwnerRequired · Surface
initialize was given the zero address as the owner.

PayoutRecipientRequired · FixedPriceMinter
initialize or setPayoutRecipient was given the zero address.

PayoutRecipientRequired · FixedPriceSale
A zero payout recipient.

PrimaryMinterNotAuthorized · SurfaceFactory
createSurfaceCustom or createPooledSurface was given a nonzero primaryMinter that is not a member of initialMinters (the sole entry, for the pooled form).

PrimaryMinterNotAuthorized · Surface
initialize or setPrimaryMinter was given a nonzero primary minter that is not a member of the granted minter set (the sole entry, for the pooled form).

ReceiverRejected · FixedPriceSale
A contract recipient reverted or did not return the ERC721 receiver selector for an actual id about to be minted.

ReentrancyGuardReentrantCall · FixedPriceMinter
OpenZeppelin ReentrancyGuard error: a nonReentrant function was re-entered.

ReentrancyGuardReentrantCall · FixedPriceSale
Standard OpenZeppelin ReentrancyGuard error: a reentrant call into a mint or withdrawal.

ReentrancyGuardReentrantCall · Surface
OpenZeppelin ReentrancyGuard error: a nonReentrant function was re-entered.

ReferralShareAboveCap · FixedPriceMinter
setReferralShareBps was given a share above MAX_REFERRAL_SHARE_BPS.

RendererIsLocked · Surface
setRenderer or lockRenderer was called after lockRenderer.

RendererNotContract · Surface
The renderer address has no code (carries the address).

RendererNotContract · SurfaceV2
The renderer address has no code.

RendererRequired · Surface
initialize was given no renderer (neither the config nor the factory default), or setRenderer was passed the zero address.

RendererRequired · SurfaceV2
The renderer address is zero.

RescueFailed · FixedPriceMinter
The transfer in rescueStrayETH reverted.

RescueFailed · Surface
The transfer in rescueStrayETH reverted.

RoyaltyReceiverRequired · SurfaceV2
The royalty receiver is zero.

RoyaltyTooHigh · Surface
initialize or setRoyalty was given a royalty above the 50% cap (5000 bps).

RoyaltyTooHigh · SurfaceV2
The royalty rate is above 5000 bps.

SaleClosed · FixedPriceSale
The sale is closed.

SalePredictionMismatch · Launcher
The sale landed somewhere other than the predicted address.

SelfCustodyRejected · SurfaceV2
A mint or transfer to the collection's own address.

SupplyIsLocked · Surface
setSupplyCap or lockSupply was called after lockSupply.

TooManyMinters · Surface
A minter grant would exceed the pooled form's one-minter limit, via setMinter or seeded at init through initialMinters.

Underpayment · FixedPriceMinter
A strategy-priced mint sent less than the quote.

WalletCapExceeded · FixedPriceMinter
The call would push mintedBy[to] past walletCap.

WalletCapExceeded · FixedPriceSale
The mint would pass the recipient's wallet cap.

WithdrawFailed · FixedPriceMinter
The transfer in withdraw reverted, for example a recipient that rejects ETH.

WithdrawFailed · FixedPriceSale
The ETH transfer to the recipient failed; the balance is kept.

WrongPayment · FixedPriceMinter
A fixed-price mint did not send exactly price * quantity.

WrongPayment · FixedPriceSale
msg.value is not exactly price * quantity.

ZeroAccount · FixedPriceMinter
withdraw or rescueStrayETH was passed the zero address.

ZeroAccount · FixedPriceSale
A withdrawal to the zero address.

ZeroAccount · Surface
rescueStrayETH or addAdmin was passed the zero address.

ZeroMinter · Surface
An initial minter in initialize, or the setMinter target, was the zero address.

ZeroQuantity · FixedPriceMinter
mint was called with quantity == 0.

ZeroQuantity · Surface
mintTo was called with quantity == 0.

ZeroQuantity · SurfaceV2
mintTo with a quantity of zero.