ExitRevert

Variant 81 v393

evm_core::error::ExitRevert

About This Type

Enum type: ExitRevert.

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

IndexNameFieldsDocs
0Revertednone

SCALE Encoding

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

Examples

Reverted
0x00
00 Variant index 0 = Reverted

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (1)

Type Information

Type ID
81
Kind
Variant
Path
evm_core::error::ExitRevert
Runtime
v393