Sudo::Error
Variant 467 v393pallet_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
Referenced By (21)
#726 RuntimeError via System#726 RuntimeError via Grandpa#726 RuntimeError via Balances#726 RuntimeError via SubtensorModule#726 RuntimeError via Utility#726 RuntimeError via Sudo#726 RuntimeError via Multisig#726 RuntimeError via Preimage#726 RuntimeError via Scheduler#726 RuntimeError via Proxy#726 RuntimeError via Registry#726 RuntimeError via Commitments#726 RuntimeError via AdminUtils#726 RuntimeError via SafeMode#726 RuntimeError via Ethereum#726 RuntimeError via EVM#726 RuntimeError via Drand#726 RuntimeError via Crowdloan#726 RuntimeError via Swap#726 RuntimeError via Contracts
and 1 more...
Also See
Type Information
- Type ID
- 467
- Kind
- Variant
- Path
- pallet_sudo::pallet::Error
- Runtime
- v393