InstantiateReturnValue

Composite 623 v393

pallet_contracts::primitives::InstantiateReturnValue

About This Type

Structured type: InstantiateReturnValue.

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
0resultExecReturnValue
1account_idAccountId

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 = result: ExecReturnValue, account_id: AccountId
0x<field0><field1>
field 0 result: ExecReturnValue
field 1 account_id: AccountId

Code Examples

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

const registry = new TypeRegistry();

// Encode InstantiateReturnValue
const value = registry.createType("InstantiateReturnValue", {
  result: 0,
  account_id: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
});
console.log("Hex:", value.toHex());

Type Parameters

AccountId = AccountId

Referenced By (1)

Type Information

Type ID
623
Kind
Composite
Path
pallet_contracts::primitives::InstantiateReturnValue
Runtime
v393