@fuel-ts/program.InvocationResult
Represents the result of a function invocation, with decoded logs and gas usage.
Name | Type | Description |
---|---|---|
T | any | The type of the returned value. |
InvocationResult
• new InvocationResult<T
>(funcScopes
, callResult
, isMultiCall
)
Constructs an instance of InvocationResult.
Name | Type |
---|---|
T | any |
Name | Type | Description |
---|---|---|
funcScopes | InvocationScopeLike | InvocationScopeLike [] | The function scopes. |
callResult | CallResult | The call result. |
isMultiCall | boolean | Whether it's a multi-call. |
packages/program/src/functions/invocation-results.ts:52
• Readonly
functionScopes: InvocationScopeLike
[]
packages/program/src/functions/invocation-results.ts:40
• Readonly
gasUsed: BN
packages/program/src/functions/invocation-results.ts:42
• Readonly
isMultiCall: boolean
packages/program/src/functions/invocation-results.ts:41
• Readonly
value: T
packages/program/src/functions/invocation-results.ts:43
▸ Protected
getDecodedLogs(receipts
): unknown
[]
Decodes the logs from the receipts.
Name | Type | Description |
---|---|---|
receipts | TransactionResultReceipt [] | The transaction result receipts. |
unknown
[]
The decoded logs.
packages/program/src/functions/invocation-results.ts:108
▸ Protected
getDecodedValue(callResult
): T
Decodes the value from the call result.
Name | Type | Description |
---|---|---|
callResult | CallResult | The call result. |
T
The decoded value.
packages/program/src/functions/invocation-results.ts:82
▸ Private
getFirstCallConfig(): undefined
| CallConfig
Gets the first call config.
undefined
| CallConfig
The first call config.
Was this page helpful?