@fuel-ts/program .InvocationCallResult
Represents the result of an invocation call.
Name | Type | Description |
---|
T | any | The type of the returned value. |
•
new InvocationCallResult<
T
>(
funcScopes
,
callResult
,
isMultiCall
):
InvocationCallResult
<
T
>
Constructs an instance of InvocationCallResult.
•
Readonly
callResult:
CallResult
•
Readonly
functionScopes:
InvocationScopeLike
[]
• Readonly
gasUsed: BN
• Readonly
isMultiCall: boolean
• Readonly
value: T
▸
getAbiFromAllCalls():
JsonAbisFromAllCalls
Gets the ABI from all calls.
The ABIs from all calls.
▸ getDecodedLogs(receipts
): unknown
[]
Decodes the logs from the receipts.
Name | Type | Description |
---|
receipts | TransactionResultReceipt [] | The transaction result receipts. |
unknown
[]
The decoded logs.
▸ getDecodedValue(callResult
): T
Decodes the value from the call result.
Name | Type | Description |
---|
callResult | CallResult | The call result. |
T
The decoded value.
▸
build<
T
>(
funcScopes
,
callResult
,
isMultiCall
):
Promise
<
InvocationCallResult
<
T
>>
Builds an instance of InvocationCallResult.
The invocation call result.