Sudo::Error
Variant 446 v411pallet_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)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | RequireSudo | none | Sender 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
0x0000 Variant index 0 = RequireSudoCode 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
Also See
Type Information
- Type ID
- 446
- Kind
- Variant
- Path
- pallet_sudo::pallet::Error
- Runtime
- v411