EVM::Error
Variant 529 v393pallet_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)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | BalanceLow | none | Not enough balance to perform action |
| 1 | FeeOverflow | none | Calculating total fee overflowed |
| 2 | PaymentOverflow | none | Calculating total payment overflowed |
| 3 | WithdrawFailed | none | Withdraw fee failed |
| 4 | GasPriceTooLow | none | Gas price is too low. |
| 5 | InvalidNonce | none | Nonce is invalid |
| 6 | GasLimitTooLow | none | Gas limit is too low. |
| 7 | GasLimitTooHigh | none | Gas limit is too high. |
| 8 | InvalidChainId | none | The chain id is invalid. |
| 9 | InvalidSignature | none | the signature is invalid. |
| 10 | Reentrancy | none | EVM reentrancy |
| 11 | TransactionMustComeFromEOA | none | EIP-3607, |
| 12 | Undefined | none | Undefined error. |
| 13 | NotAllowed | none | Origin is not allowed to perform the operation. |
| 14 | CreateOriginNotAllowed | none | Address 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
0x0000 Variant index 0 = BalanceLowFeeOverflow
0x0101 Variant index 1 = FeeOverflowPaymentOverflow
0x0202 Variant index 2 = PaymentOverflowCode 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)
#726 RuntimeError via System#726 RuntimeError via Grandpa#726 RuntimeError via Balances#726 RuntimeError via SubtensorModule#726 RuntimeError via Utility#726 RuntimeError via Sudo#726 RuntimeError via Multisig#726 RuntimeError via Preimage#726 RuntimeError via Scheduler#726 RuntimeError via Proxy#726 RuntimeError via Registry#726 RuntimeError via Commitments#726 RuntimeError via AdminUtils#726 RuntimeError via SafeMode#726 RuntimeError via Ethereum#726 RuntimeError via EVM#726 RuntimeError via Drand#726 RuntimeError via Crowdloan#726 RuntimeError via Swap#726 RuntimeError via Contracts
and 1 more...
Also See
Type Information
- Type ID
- 529
- Kind
- Variant
- Path
- pallet_evm::pallet::Error
- Runtime
- v393