MevShield::Error

Variant 564 v393

pallet_shield::pallet::Error

The `Error` enum of this pallet.

About This Type

Error enum for the Error pallet.

Contains all error types that the Error pallet can return when a call fails.

Variants (2)

IndexNameFieldsDocs
0BadEncKeyLennoneThe announced ML‑KEM encapsulation key length is invalid.
1UnreachablenoneUnreachable.

SCALE Encoding

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

Examples

BadEncKeyLen
0x00
00 Variant index 0 = BadEncKeyLen
Unreachable
0x01
01 Variant index 1 = Unreachable

Code Examples

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

const registry = new TypeRegistry();

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

Type Parameters

T

Referenced By (21)

and 1 more...

Also See

Type Information

Type ID
564
Kind
Variant
Path
pallet_shield::pallet::Error
Runtime
v393