EVM::Error

Variant 529 v393

pallet_evm::pallet::Error

The `Error` enum of this pallet.

About This Type

Error enum for the Error pallet.

Contains all error types that the Error pallet can return when a call fails.

Variants (15)

IndexNameFieldsDocs
0BalanceLownoneNot enough balance to perform action
1FeeOverflownoneCalculating total fee overflowed
2PaymentOverflownoneCalculating total payment overflowed
3WithdrawFailednoneWithdraw fee failed
4GasPriceTooLownoneGas price is too low.
5InvalidNoncenoneNonce is invalid
6GasLimitTooLownoneGas limit is too low.
7GasLimitTooHighnoneGas limit is too high.
8InvalidChainIdnoneThe chain id is invalid.
9InvalidSignaturenonethe signature is invalid.
10ReentrancynoneEVM reentrancy
11TransactionMustComeFromEOAnoneEIP-3607,
12UndefinednoneUndefined error.
13NotAllowednoneOrigin is not allowed to perform the operation.
14CreateOriginNotAllowednoneAddress not allowed to deploy contracts either via CREATE or CALL(CREATE).

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 15 possible variants.
Size
variable (1+ bytes)

Examples

BalanceLow
0x00
00 Variant index 0 = BalanceLow
FeeOverflow
0x01
01 Variant index 1 = FeeOverflow
PaymentOverflow
0x02
02 Variant index 2 = PaymentOverflow

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode EVM::Error — variant "BalanceLow"
const value = registry.createType("EVM::Error", "BalanceLow");
console.log("Hex:", value.toHex());

Type Parameters

T

Referenced By (21)

and 1 more...

Also See

Type Information

Type ID
529
Kind
Variant
Path
pallet_evm::pallet::Error
Runtime
v393