pub enum ActionsValidationError {
    DeleteActionMustBeFinal,
    TotalPrepaidGasExceeded {
        total_prepaid_gas: Gas,
        limit: Gas,
    },
    TotalNumberOfActionsExceeded {
        total_number_of_actions: u64,
        limit: u64,
    },
    AddKeyMethodNamesNumberOfBytesExceeded {
        total_number_of_bytes: u64,
        limit: u64,
    },
    AddKeyMethodNameLengthExceeded {
        length: u64,
        limit: u64,
    },
    IntegerOverflow,
    InvalidAccountId {
        account_id: String,
    },
    ContractSizeExceeded {
        size: u64,
        limit: u64,
    },
    FunctionCallMethodNameLengthExceeded {
        length: u64,
        limit: u64,
    },
    FunctionCallArgumentsLengthExceeded {
        length: u64,
        limit: u64,
    },
    UnsuitableStakingKey {
        public_key: PublicKey,
    },
    FunctionCallZeroAttachedGas,
}
Expand description

Describes the error for validating a list of actions.

Variants

DeleteActionMustBeFinal

The delete action must be a final aciton in transaction

TotalPrepaidGasExceeded

Fields

total_prepaid_gas: Gas
limit: Gas

The total prepaid gas (for all given actions) exceeded the limit.

TotalNumberOfActionsExceeded

Fields

total_number_of_actions: u64
limit: u64

The number of actions exceeded the given limit.

AddKeyMethodNamesNumberOfBytesExceeded

Fields

total_number_of_bytes: u64
limit: u64

The total number of bytes of the method names exceeded the limit in a Add Key action.

AddKeyMethodNameLengthExceeded

Fields

length: u64
limit: u64

The length of some method name exceeded the limit in a Add Key action.

IntegerOverflow

Integer overflow during a compute.

InvalidAccountId

Fields

account_id: String

Invalid account ID.

ContractSizeExceeded

Fields

size: u64
limit: u64

The size of the contract code exceeded the limit in a DeployContract action.

FunctionCallMethodNameLengthExceeded

Fields

length: u64
limit: u64

The length of the method name exceeded the limit in a Function Call action.

FunctionCallArgumentsLengthExceeded

Fields

length: u64
limit: u64

The length of the arguments exceeded the limit in a Function Call action.

UnsuitableStakingKey

Fields

public_key: PublicKey

An attempt to stake with a public key that is not convertible to ristretto.

FunctionCallZeroAttachedGas

The attached amount of gas in a FunctionCall action has to be a positive number.

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
Deserialize this instance from a slice of bytes.
Serialize this instance into a vector of bytes.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0:

use the Display impl or to_string()

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

🔬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
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.