Ethereum::Error
Variant 506 v411pallet_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)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | InvalidSignature | none | Signature is invalid. |
| 1 | PreLogExists | none | Pre-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
0x0000 Variant index 0 = InvalidSignaturePreLogExists
0x0101 Variant index 1 = PreLogExistsCode 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
Also See
Type Information
- Type ID
- 506
- Kind
- Variant
- Path
- pallet_ethereum::pallet::Error
- Runtime
- v411