ExecReturnValue
Composite 615 v393pallet_contracts::primitives::ExecReturnValue
About This Type
Structured type: ExecReturnValue.
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)
| # | Name | Type |
|---|---|---|
| 0 | flags | ReturnFlags |
| 1 | data | Vec<u8> |
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 = flags: ReturnFlags, data: Vec<u8>
0x<field0><field1>field 0 flags: ReturnFlagsfield 1 data: Vec<u8>Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode ExecReturnValue
const value = registry.createType("ExecReturnValue", {
flags: 0,
data: 0
});
console.log("Hex:", value.toHex());Referenced By (2)
Type Information
- Type ID
- 615
- Kind
- Composite
- Path
- pallet_contracts::primitives::ExecReturnValue
- Runtime
- v393