LastRuntimeUpgradeInfo

Composite 103 v393

frame_system::LastRuntimeUpgradeInfo

About This Type

Structured type: LastRuntimeUpgradeInfo.

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)

#NameType
0spec_versionCompact<u32>
1spec_nameCow

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 = spec_version: Compact<u32>, spec_name: Cow
0x<field0><field1>
field 0 spec_version: Compact<u32>
field 1 spec_name: Cow

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode LastRuntimeUpgradeInfo
const value = registry.createType("LastRuntimeUpgradeInfo", {
  spec_version: 0,
  spec_name: 0
});
console.log("Hex:", value.toHex());

Type Information

Type ID
103
Kind
Composite
Path
frame_system::LastRuntimeUpgradeInfo
Runtime
v393