ExitError

Variant 77 v393

evm_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)

IndexNameFieldsDocs
0StackUnderflownone
1StackOverflownone
2InvalidJumpnone
3InvalidRangenone
4DesignatedInvalidnone
5CallTooDeepnone
6CreateCollisionnone
7CreateContractLimitnone
15InvalidCode
8OutOfOffsetnone
9OutOfGasnone
10OutOfFundnone
11PCUnderflownone
12CreateEmptynone
13Other
14MaxNoncenone

SCALE Encoding

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

Examples

StackUnderflow
0x00
00 Variant index 0 = StackUnderflow
StackOverflow
0x01
01 Variant index 1 = StackOverflow
InvalidJump
0x02
02 Variant index 2 = InvalidJump

Code 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