Sudo::Error

Variant 467 v393

pallet_sudo::pallet::Error

Error for the Sudo 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 (1)

IndexNameFieldsDocs
0RequireSudononeSender must be the Sudo account.

SCALE Encoding

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

Examples

RequireSudo
0x00
00 Variant index 0 = RequireSudo

Code Examples

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

const registry = new TypeRegistry();

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

Type Parameters

T

Referenced By (21)

and 1 more...

Also See

Type Information

Type ID
467
Kind
Variant
Path
pallet_sudo::pallet::Error
Runtime
v393