ExitReason
Variant 73 v393pallet_safe_mode::pallet::ExitReason
About This Type
Enum type: ExitReason.
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 (2)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Timeout | none | |
| 1 | Force | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 2 possible variants.
- Size
- variable (1+ bytes)
Examples
Timeout
0x0000 Variant index 0 = TimeoutForce
0x0101 Variant index 1 = ForceCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode ExitReason — variant "Timeout"
const value = registry.createType("ExitReason", "Timeout");
console.log("Hex:", value.toHex());Referenced By (4)
Type Information
- Type ID
- 73
- Kind
- Variant
- Path
- pallet_safe_mode::pallet::ExitReason
- Runtime
- v393