ExecutionInfoV2

Composite 600 v393

fp_evm::ExecutionInfoV2

About This Type

Structured type: ExecutionInfoV2.

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 (5)

#NameType
0exit_reasonExitReason
1valueVec<u8>
2used_gasUsedGas
3weight_infoOption
4logsVec<Log>

SCALE Encoding

Rule
5 fields encoded consecutively in declaration order. No field names or delimiters.
Size
sum of field sizes

Examples

Struct with 5 fields = exit_reason: ExitReason, value: Vec<u8>, used_gas: UsedGas, weight_info: Option, logs: Vec<Log>
0x<field0><field1><field2><field3><field4>
field 0 exit_reason: ExitReason
field 1 value: Vec<u8>
field 2 used_gas: UsedGas
field 3 weight_info: Option
field 4 logs: Vec<Log>

Code Examples

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

const registry = new TypeRegistry();

// Encode ExecutionInfoV2
const value = registry.createType("ExecutionInfoV2", {
  exit_reason: 0,
  value: 0,
  used_gas: 0,
  weight_info: 0,
  logs: 0
});
console.log("Hex:", value.toHex());

Type Parameters

T = Vec<u8>

Referenced By (2)

Type Information

Type ID
600
Kind
Composite
Path
fp_evm::ExecutionInfoV2
Runtime
v393