Ethereum::Error

Variant 526 v393

pallet_ethereum::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 (2)

IndexNameFieldsDocs
0InvalidSignaturenoneSignature is invalid.
1PreLogExistsnonePre-log is present, therefore transact is not allowed.

SCALE Encoding

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

Examples

InvalidSignature
0x00
00 Variant index 0 = InvalidSignature
PreLogExists
0x01
01 Variant index 1 = PreLogExists

Code Examples

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

const registry = new TypeRegistry();

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

Type Parameters

T

Referenced By (21)

and 1 more...

Also See

Type Information

Type ID
526
Kind
Variant
Path
pallet_ethereum::pallet::Error
Runtime
v393