Enum fuel_tx::CheckError
source · #[non_exhaustive]
pub enum CheckError {
Show 40 variants
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,
},
TransactionCreateOutputContract {
index: usize,
},
TransactionCreateOutputVariable {
index: usize,
},
TransactionCreateOutputChangeNotBaseAsset {
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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InputWitnessIndexBounds
InputPredicateEmpty
InputPredicateLength
InputPredicateDataLength
InputPredicateOwner
InputInvalidSignature
InputContractAssociatedOutputContract
InputMessageDataLength
DuplicateInputUtxoId
DuplicateMessageInputId
DuplicateInputContractId
Fields
§
contract_id: ContractId
OutputContractInputIndex
TransactionCreateInputContract
TransactionCreateOutputContract
TransactionCreateOutputVariable
TransactionCreateOutputChangeNotBaseAsset
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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CheckError> for Error
impl From<CheckError> for Error
source§fn from(v: CheckError) -> Error
fn from(v: CheckError) -> Error
Converts to this type from the input type.
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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CheckError
impl StructuralEq for CheckError
impl StructuralPartialEq for CheckError
Auto Trait Implementations§
impl RefUnwindSafe for CheckError
impl Send for CheckError
impl Sync for CheckError
impl Unpin for CheckError
impl UnwindSafe for CheckError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more