Commitments::Error
Variant 487 v411pallet_commitments::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 | TooManyFieldsInCommitmentInfo | none | Account passed too many additional fields to their commitment |
| 1 | AccountNotAllowedCommit | none | Account is not allowed to make commitments to the chain |
| 2 | SpaceLimitExceeded | none | Space Limit Exceeded for the current interval |
| 3 | UnexpectedUnreserveLeftover | none | Indicates that unreserve returned a leftover, which is unexpected. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 4 possible variants.
- Size
- variable (1+ bytes)
Examples
TooManyFieldsInCommitmentInfo
0x0000 Variant index 0 = TooManyFieldsInCommitmentInfoAccountNotAllowedCommit
0x0101 Variant index 1 = AccountNotAllowedCommitSpaceLimitExceeded
0x0202 Variant index 2 = SpaceLimitExceededCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Commitments::Error — variant "TooManyFieldsInCommitmentInfo"
const value = registry.createType("Commitments::Error", "TooManyFieldsInCommitmentInfo");
console.log("Hex:", value.toHex());Type Parameters
T
Also See
Type Information
- Type ID
- 487
- Kind
- Variant
- Path
- pallet_commitments::pallet::Error
- Runtime
- v411