Skip to content

Incorrect gas burnt from transaction result #212

Open
@BenKurrek

Description

When I take the gas_burnt from the TransactionResult, the value is not correct:

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.

Example:

image

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      NEW❗

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions