Open BenKurrek opened 11 months ago
When I take the gas_burnt from the TransactionResult, the value is not correct:
gas_burnt
TransactionResult
let rawValue = await signer.callRaw(receiver, methodName, args, {gas: gasToAttach, attachedDeposit: attachedDeposit || "0"}); let gasBurnt = rawValue.gas_burnt; console.log(`Gas Burnt: ${gasBurnt.toHuman()}`)
If you loop through all the receipts in the rawValue and tally their gas_burnt, it will exceed what was returned from the transaction result object.
rawValue
Example:
When I take the
gas_burnt
from theTransactionResult
, the value is not correct:If you loop through all the receipts in the
rawValue
and tally theirgas_burnt
, it will exceed what was returned from the transaction result object.Example: