Enum fuel_tx::CheckError
source · #[non_exhaustive]pub enum CheckError {
Show 43 variants
NoSpendableInput,
InputWitnessIndexBounds {
index: usize,
},
InputPredicateEmpty {
index: usize,
},
InputPredicateLength {
index: usize,
},
InputPredicateDataLength {
index: usize,
},
InputPredicateOwner {
index: usize,
},
InputInvalidSignature {
index: usize,
},
InputContractAssociatedOutputContract {
index: usize,
},
InputMessageDataLength {
index: usize,
},
DuplicateInputUtxoId {
utxo_id: UtxoId,
},
DuplicateMessageInputId {
message_id: MessageId,
},
DuplicateInputContractId {
contract_id: ContractId,
},
OutputContractInputIndex {
index: usize,
},
TransactionCreateInputContract {
index: usize,
},
TransactionCreateMessageData {
index: usize,
},
TransactionCreateOutputContract {
index: usize,
},
TransactionCreateOutputVariable {
index: usize,
},
TransactionCreateOutputChangeNotBaseAsset {
index: usize,
},
TransactionCreateOutputContractCreatedDoesntMatch {
index: usize,
},
TransactionCreateOutputContractCreatedMultiple {
index: usize,
},
TransactionCreateBytecodeLen,
TransactionCreateBytecodeWitnessIndex,
TransactionCreateStorageSlotMax,
TransactionCreateStorageSlotOrder,
TransactionScriptLength,
TransactionScriptDataLength,
TransactionScriptOutputContractCreated {
index: usize,
},
TransactionMintOutputIsNotCoin,
TransactionMintIncorrectBlockHeight,
TransactionGasLimit,
TransactionMaturity,
TransactionInputsMax,
TransactionOutputsMax,
TransactionWitnessesMax,
TransactionOutputCoinAssetIdDuplicated(AssetId),
TransactionOutputChangeAssetIdDuplicated(AssetId),
TransactionOutputChangeAssetIdNotFound(AssetId),
TransactionOutputCoinAssetIdNotFound(AssetId),
InsufficientFeeAmount {
expected: u64,
provided: u64,
},
InsufficientInputAmount {
asset: AssetId,
expected: u64,
provided: u64,
},
ArithmeticOverflow,
PredicateVerificationFailed,
PredicateExhaustedGas,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoSpendableInput
Transaction doesn’t have spendable input message or coin.
InputWitnessIndexBounds
InputPredicateEmpty
InputPredicateLength
InputPredicateDataLength
InputPredicateOwner
InputInvalidSignature
InputContractAssociatedOutputContract
InputMessageDataLength
DuplicateInputUtxoId
DuplicateMessageInputId
DuplicateInputContractId
Fields
contract_id: ContractId
OutputContractInputIndex
TransactionCreateInputContract
TransactionCreateMessageData
The Create
transaction contains (retryable) message input.
TransactionCreateOutputContract
TransactionCreateOutputVariable
TransactionCreateOutputChangeNotBaseAsset
TransactionCreateOutputContractCreatedDoesntMatch
TransactionCreateOutputContractCreatedMultiple
TransactionCreateBytecodeLen
TransactionCreateBytecodeWitnessIndex
TransactionCreateStorageSlotMax
TransactionCreateStorageSlotOrder
TransactionScriptLength
TransactionScriptDataLength
TransactionScriptOutputContractCreated
TransactionMintOutputIsNotCoin
TransactionMintIncorrectBlockHeight
The block height of the checking doesn’t match the transaction’s block height.
Mint
transaction only exists in the scope of the block.
TransactionGasLimit
Max gas per tx exceeded
TransactionMaturity
TransactionInputsMax
TransactionOutputsMax
TransactionWitnessesMax
TransactionOutputCoinAssetIdDuplicated(AssetId)
TransactionOutputChangeAssetIdDuplicated(AssetId)
TransactionOutputChangeAssetIdNotFound(AssetId)
TransactionOutputCoinAssetIdNotFound(AssetId)
This error happens when a transaction attempts to create a coin output for an asset type that doesn’t exist in the coin inputs.
InsufficientFeeAmount
Fields
The transaction doesn’t provide enough input amount of the native chain asset to cover all potential execution fees
InsufficientInputAmount
Fields
The transaction doesn’t provide enough input amount of the given asset to cover the amounts used in the outputs.
ArithmeticOverflow
The user provided amounts for coins or gas prices that caused an arithmetic overflow.
PredicateVerificationFailed
Predicate verification failed
PredicateExhaustedGas
Predicate used all available gas
Trait Implementations§
source§impl Clone for CheckError
impl Clone for CheckError
source§fn clone(&self) -> CheckError
fn clone(&self) -> CheckError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CheckError
impl Debug for CheckError
source§impl Display for CheckError
impl Display for CheckError
source§impl Error for CheckError
impl Error for CheckError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<CheckError> for Error
impl From<CheckError> for Error
source§fn from(v: CheckError) -> Error
fn from(v: CheckError) -> Error
source§impl Hash for CheckError
impl Hash for CheckError
source§impl PartialEq<CheckError> for CheckError
impl PartialEq<CheckError> for CheckError
source§fn eq(&self, other: &CheckError) -> bool
fn eq(&self, other: &CheckError) -> bool
self
and other
values to be equal, and is used
by ==
.