ExitFatal

Variant 82 v393

evm_core::error::ExitFatal

About This Type

Enum type: ExitFatal.

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 (4)

IndexNameFieldsDocs
0NotSupportednone
1UnhandledInterruptnone
2CallErrorAsFatal
3Other

SCALE Encoding

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

Examples

NotSupported
0x00
00 Variant index 0 = NotSupported
UnhandledInterrupt
0x01
01 Variant index 1 = UnhandledInterrupt
CallErrorAsFatal = CallErrorAsFatal(ExitError)
0x02<field0>
02 Variant index 2 = CallErrorAsFatal
field 0 field0: ExitError

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (1)

Type Information

Type ID
82
Kind
Variant
Path
evm_core::error::ExitFatal
Runtime
v393