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 · SurfaceaddAdmin was called for the owner or an existing admin.
AlreadyDeprecated · CloneFactorydeprecate was already called.
AlreadyDeprecated · SurfaceFactorydeprecate was called on an already-deprecated factory.
BadMintWindow · FixedPriceMinterinitialize or setMintWindow was given a nonzero mintEnd not strictly after mintStart.
BadMintWindow · FixedPriceSale
A window end at or before its start.
BadSupplyCap · SurfacesetSupplyCap 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 · FixedPriceMinterinitialize was given the zero address as the collection.
CollectionRequired · FixedPriceSaleinitialize 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 · FixedPriceMintermint was called at or after a nonzero mintEnd.
MintEnded · FixedPriceSale
At or after mintEnd.
MinterIsLocked · SurfacesetMinter or lockMinter was called after lockMinter.
MinterRequired · SurfaceV2initialize was given a zero minter.
MintNotStarted · FixedPriceMintermint was called before mintStart.
MintNotStarted · FixedPriceSale
Before mintStart.
NeverMinted · SurfacetokenSeed was read for an id that was never minted (its seed slot is zero).
NeverMinted · SurfaceV2tokenSeed was asked for an id that was never minted.
NoStrayETH · FixedPriceMinterrescueStrayETH found no ETH above the owed balances.
NoStrayETH · SurfacerescueStrayETH 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 · FixedPriceMinterinitialize 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 · SurfaceremoveAdmin was called for an account that holds no grant.
NotAuthorized · AllowlistGatesetRoot 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 · SurfaceV2notifyMetadataUpdate from an address that is neither the renderer nor the owner.
NotDeployer · CloneFactorysetPaused or deprecate from someone other than the deployer.
NotDeployer · SurfaceFactorydeprecate or setPaused was called by an address other than the factory deployer.
NothingToWithdraw · FixedPriceMinterwithdraw was called for an account with a zero balance.
NothingToWithdraw · FixedPriceSale
The account has no owed balance.
NotInitializer · CloneFactoryinitData 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 · SurfaceV2mintTo from an address that is not the minter.
OnlySequential · SurfacesetPrimaryMinter 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 · Surfaceinitialize was given the zero address as the owner.
PayoutRecipientRequired · FixedPriceMinterinitialize or setPayoutRecipient was given the zero address.
PayoutRecipientRequired · FixedPriceSale
A zero payout recipient.
PrimaryMinterNotAuthorized · SurfaceFactorycreateSurfaceCustom or createPooledSurface was given a nonzero primaryMinter that is not a member of initialMinters (the sole entry, for the pooled form).
PrimaryMinterNotAuthorized · Surfaceinitialize 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 · FixedPriceMintersetReferralShareBps was given a share above MAX_REFERRAL_SHARE_BPS.
RendererIsLocked · SurfacesetRenderer 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 · Surfaceinitialize 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 · Surfaceinitialize 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 · SurfacesetSupplyCap 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 · FixedPriceSalemsg.value is not exactly price * quantity.
ZeroAccount · FixedPriceMinterwithdraw or rescueStrayETH was passed the zero address.
ZeroAccount · FixedPriceSale
A withdrawal to the zero address.
ZeroAccount · SurfacerescueStrayETH or addAdmin was passed the zero address.
ZeroMinter · Surface
An initial minter in initialize, or the setMinter target, was the zero address.
ZeroQuantity · FixedPriceMintermint was called with quantity == 0.
ZeroQuantity · SurfacemintTo was called with quantity == 0.
ZeroQuantity · SurfaceV2mintTo with a quantity of zero.