ExecutionInfoV2
Composite 600 v393fp_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)
| # | Name | Type |
|---|---|---|
| 0 | exit_reason | ExitReason |
| 1 | value | Vec<u8> |
| 2 | used_gas | UsedGas |
| 3 | weight_info | Option |
| 4 | logs | Vec<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: ExitReasonfield 1 value: Vec<u8>field 2 used_gas: UsedGasfield 3 weight_info: Optionfield 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