CodeUploadReturnValue
Composite 625 v393pallet_contracts::primitives::CodeUploadReturnValue
About This Type
Structured type: CodeUploadReturnValue.
A struct-like type where each field is encoded in declaration order.
Encoding: Fields encoded consecutively in declaration order, no field names or separators.
Fields (2)
SCALE Encoding
- Rule
- 2 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 2 fields = code_hash: H256, deposit: u64
0x<field0><field1>field 0 code_hash: H256field 1 deposit: u64Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode CodeUploadReturnValue
const value = registry.createType("CodeUploadReturnValue", {
code_hash: 0,
deposit: 1_000_000_000n
});
console.log("Hex:", value.toHex());Type Parameters
CodeHash = H256
Balance = u64
Referenced By (1)
Type Information
- Type ID
- 625
- Kind
- Composite
- Path
- pallet_contracts::primitives::CodeUploadReturnValue
- Runtime
- v393