ExitError
Variant 77 v393evm_core::error::ExitError
About This Type
Enum type: ExitError.
A tagged union where the first byte selects which variant is active, followed by that variant's data.
Encoding: 1-byte variant index followed by the selected variant's field data.
Variants (16)
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 16 possible variants.
- Size
- variable (1+ bytes)
Examples
StackUnderflow
0x0000 Variant index 0 = StackUnderflowStackOverflow
0x0101 Variant index 1 = StackOverflowInvalidJump
0x0202 Variant index 2 = InvalidJumpCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode ExitError — variant "StackUnderflow"
const value = registry.createType("ExitError", "StackUnderflow");
console.log("Hex:", value.toHex());Referenced By (2)
Type Information
- Type ID
- 77
- Kind
- Variant
- Path
- evm_core::error::ExitError
- Runtime
- v393