Replies: 1 comment 2 replies
-
hi @ricmoo , By any chance, have you had time to look into this ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Assume the following:
it prints: "55834 gas used".
Now, assume the following:
Now, it prints: "58193 gas Used"
I clearly don't understand how
gasLimit
argument caused such difference.Note that I'm 100% sure of the followings:
Would appreciate what's going on. I thought that
gasUsed
is calculated by summing up the costs for each opcode and so on. how doesgasLimit
cause such anomaly ?Even if I run Tx1 multiple times, it prints the same gasUsed. So all good till now. It's
gasLimit
definitely that makes things confusing.I'm testing this on Goerli from ethers.js and provider is infura.
The contract code is here - https://gist.github.com/novaknole/62a3289f34331c1a08fcb278bbf21417
Beta Was this translation helpful? Give feedback.
All reactions