MevShield::Error
Variant 544 v411pallet_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 (4)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | BadEncKeyLen | none | The announced ML‑KEM encapsulation key length is invalid. |
| 1 | Unreachable | none | Unreachable. |
| 2 | TooManyPendingExtrinsics | none | Too many pending extrinsics in storage. |
| 3 | WeightExceedsAbsoluteMax | none | Weight exceeds the absolute maximum (half of total block weight). |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 4 possible variants.
- Size
- variable (1+ bytes)
Examples
BadEncKeyLen
0x0000 Variant index 0 = BadEncKeyLenUnreachable
0x0101 Variant index 1 = UnreachableTooManyPendingExtrinsics
0x0202 Variant index 2 = TooManyPendingExtrinsicsCode 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
Also See
Type Information
- Type ID
- 544
- Kind
- Variant
- Path
- pallet_shield::pallet::Error
- Runtime
- v411