Enum fuel_tx::CheckError

source ·
#[non_exhaustive]
pub enum CheckError {
Show 41 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, }, TransactionCreateMessageData { 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

Fields

§index: usize
§

InputPredicateEmpty

Fields

§index: usize
§

InputPredicateLength

Fields

§index: usize
§

InputPredicateDataLength

Fields

§index: usize
§

InputPredicateOwner

Fields

§index: usize
§

InputInvalidSignature

Fields

§index: usize
§

InputContractAssociatedOutputContract

Fields

§index: usize
§

InputMessageDataLength

Fields

§index: usize
§

DuplicateInputUtxoId

Fields

§utxo_id: UtxoId
§

DuplicateMessageInputId

Fields

§message_id: MessageId
§

DuplicateInputContractId

Fields

§contract_id: ContractId
§

OutputContractInputIndex

Fields

§index: usize
§

TransactionCreateInputContract

Fields

§index: usize
§

TransactionCreateMessageData

Fields

§index: usize

The Create transaction contains (retryable) message input.

§

TransactionCreateOutputContract

Fields

§index: usize
§

TransactionCreateOutputVariable

Fields

§index: usize
§

TransactionCreateOutputChangeNotBaseAsset

Fields

§index: usize
§

TransactionCreateOutputContractCreatedMultiple

Fields

§index: usize
§

TransactionCreateBytecodeLen

§

TransactionCreateBytecodeWitnessIndex

§

TransactionCreateStorageSlotMax

§

TransactionCreateStorageSlotOrder

§

TransactionScriptLength

§

TransactionScriptDataLength

§

TransactionScriptOutputContractCreated

Fields

§index: usize
§

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

§expected: u64

The expected amount of fees required to cover the transaction

§provided: u64

The fee amount actually provided for spending

The transaction doesn’t provide enough input amount of the native chain asset to cover all potential execution fees

§

InsufficientInputAmount

Fields

§asset: AssetId

The asset id being spent

§expected: u64

The amount expected by a coin output

§provided: u64

The total amount provided by coin inputs

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

source§

fn clone(&self) -> CheckError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CheckError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CheckError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CheckError

source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<CheckError> for Error

source§

fn from(v: CheckError) -> Error

Converts to this type from the input type.
source§

impl Hash for CheckError

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<CheckError> for CheckError

source§

fn eq(&self, other: &CheckError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for CheckError

source§

impl StructuralEq for CheckError

source§

impl StructuralPartialEq for CheckError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

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,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<T> StorageAsMut for T

§

fn storage<Type>(&mut self) -> StorageMut<'_, Self, Type>where Type: Mappable,

§

fn storage_as_mut<Type>(&mut self) -> StorageMut<'_, Self, Type>where Type: Mappable,

§

impl<T> StorageAsRef for T

§

fn storage<Type>(&self) -> StorageRef<'_, Self, Type>where Type: Mappable,

§

fn storage_as_ref<Type>(&self) -> StorageRef<'_, Self, Type>where Type: Mappable,

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V