CodeMetadata
Composite 527 v393pallet_evm::CodeMetadata
About This Type
Structured type: CodeMetadata.
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 = size: u64, hash: H256
0x<field0><field1>field 0 size: u64field 1 hash: H256Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode CodeMetadata
const value = registry.createType("CodeMetadata", {
size: 1_000_000_000n,
hash: 0
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 527
- Kind
- Composite
- Path
- pallet_evm::CodeMetadata
- Runtime
- v393