ExitSucceed

Variant 76 v393

evm_core::error::ExitSucceed

About This Type

Enum type: ExitSucceed.

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

IndexNameFieldsDocs
0Stoppednone
1Returnednone
2Suicidednone

SCALE Encoding

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

Examples

Stopped
0x00
00 Variant index 0 = Stopped
Returned
0x01
01 Variant index 1 = Returned
Suicided
0x02
02 Variant index 2 = Suicided

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (1)

Type Information

Type ID
76
Kind
Variant
Path
evm_core::error::ExitSucceed
Runtime
v393