Open
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](https://private-user-images.githubusercontent.com/57506486/257880510-aad8a38d-d169-4388-a0c3-cabff4e856bf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTAyMDksIm5iZiI6MTczOTY4OTkwOSwicGF0aCI6Ii81NzUwNjQ4Ni8yNTc4ODA1MTAtYWFkOGEzOGQtZDE2OS00Mzg4LWEwYzMtY2FiZmY0ZTg1NmJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA3MTE0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlmYmFkZDlkNjlhOWZkMjM1N2QzNTNmOThiM2Q4MDQ1YmRjYjAzYjMxNGNiNTA1MjIwZDY1Zjc2MTU2ZWQ5YjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._ekprHZoHt27TlyyHRWrDJHb4cqj2wueT4mNVBNkcRU)
Metadata
Assignees
Labels
No labels
Type
Projects
Status
NEW❗