Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect gas burnt from transaction result #212

Open
BenKurrek opened this issue Aug 2, 2023 · 0 comments
Open

Incorrect gas burnt from transaction result #212

BenKurrek opened this issue Aug 2, 2023 · 0 comments

Comments

@BenKurrek
Copy link

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
@ghost ghost mentioned this issue Oct 24, 2023
@github-project-automation github-project-automation bot moved this to Backlog 🥶 in DevRel Jun 3, 2024
@thisisjoshford thisisjoshford removed this from DevRel Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant