StarknetError
Fully qualified path: sncast_std::StarknetError
#[derive(Drop, Serde, PartialEq, Debug)]
pub enum StarknetError {
FailedToReceiveTransaction,
ContractNotFound,
BlockNotFound,
InvalidTransactionIndex,
ClassHashNotFound,
TransactionHashNotFound,
ContractError: ErrorData,
TransactionExecutionError: TransactionExecutionErrorData,
ClassAlreadyDeclared,
InvalidTransactionNonce,
InsufficientMaxFee,
InsufficientAccountBalance,
ValidationFailure: ErrorData,
CompilationFailed,
ContractClassSizeIsTooLarge,
NonAccount,
DuplicateTx,
CompiledClassHashMismatch,
UnsupportedTxVersion,
UnsupportedContractClassVersion,
UnexpectedError: ErrorData,
}
Variants
FailedToReceiveTransaction
Failed to receive transaction
Fully qualified path: sncast_std::StarknetError::FailedToReceiveTransaction
FailedToReceiveTransaction
ContractNotFound
Contract not found
Fully qualified path: sncast_std::StarknetError::ContractNotFound
ContractNotFound
BlockNotFound
Block not found
Fully qualified path: sncast_std::StarknetError::BlockNotFound
BlockNotFound
InvalidTransactionIndex
Invalid transaction index in a block
Fully qualified path: sncast_std::StarknetError::InvalidTransactionIndex
InvalidTransactionIndex
ClassHashNotFound
Class hash not found
Fully qualified path: sncast_std::StarknetError::ClassHashNotFound
ClassHashNotFound
TransactionHashNotFound
Transaction hash not found
Fully qualified path: sncast_std::StarknetError::TransactionHashNotFound
TransactionHashNotFound
ContractError
Contract error
Fully qualified path: sncast_std::StarknetError::ContractError
ContractError : ErrorData
TransactionExecutionError
Transaction execution error
Fully qualified path: sncast_std::StarknetError::TransactionExecutionError
TransactionExecutionError : TransactionExecutionErrorData
ClassAlreadyDeclared
Class already declared
Fully qualified path: sncast_std::StarknetError::ClassAlreadyDeclared
ClassAlreadyDeclared
InvalidTransactionNonce
Invalid transaction nonce
Fully qualified path: sncast_std::StarknetError::InvalidTransactionNonce
InvalidTransactionNonce
InsufficientMaxFee
Max fee is smaller than the minimal transaction cost (validation plus fee transfer)
Fully qualified path: sncast_std::StarknetError::InsufficientMaxFee
InsufficientMaxFee
InsufficientAccountBalance
Account balance is smaller than the transaction's max_fee
Fully qualified path: sncast_std::StarknetError::InsufficientAccountBalance
InsufficientAccountBalance
ValidationFailure
Account validation failed
Fully qualified path: sncast_std::StarknetError::ValidationFailure
ValidationFailure : ErrorData
CompilationFailed
Compilation failed
Fully qualified path: sncast_std::StarknetError::CompilationFailed
CompilationFailed
ContractClassSizeIsTooLarge
Contract class size it too large
Fully qualified path: sncast_std::StarknetError::ContractClassSizeIsTooLarge
ContractClassSizeIsTooLarge
NonAccount
Sender address in not an account contract
Fully qualified path: sncast_std::StarknetError::NonAccount
NonAccount
DuplicateTx
A transaction with the same hash already exists in the mempool
Fully qualified path: sncast_std::StarknetError::DuplicateTx
DuplicateTx
CompiledClassHashMismatch
the compiled class hash did not match the one supplied in the transaction
Fully qualified path: sncast_std::StarknetError::CompiledClassHashMismatch
CompiledClassHashMismatch
UnsupportedTxVersion
the transaction version is not supported
Fully qualified path: sncast_std::StarknetError::UnsupportedTxVersion
UnsupportedTxVersion
UnsupportedContractClassVersion
the contract class version is not supported
Fully qualified path: sncast_std::StarknetError::UnsupportedContractClassVersion
UnsupportedContractClassVersion
UnexpectedError
An unexpected error occurred
Fully qualified path: sncast_std::StarknetError::UnexpectedError
UnexpectedError : ErrorData