This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 161
wrong precision in calculation of gas fee during call AnteHandler #799
Comments
11 tasks
That looks correct here no? the proper precision should be 1x10^18 and that's what it looks like it's doing here. can you provide more explanation here? otherwise, this looks like a non-issue |
for example: if I set gas price to 1 GWEI in metamask or any other wallets of ethereum, the member |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
System info: [Include Ethermint commit, operating system name, and other relevant details]
Code: 177574a
Steps to reproduce:
ethermint/app/ante/eth.go
Line 102 in 177574a
call
NewDecCoin
will increment precision to 18, it means if you call it like:The
fee
will become to 1000000000000000000, that's a wrong precision calculationExpected behavior: [What you expected to happen]
Actual behavior: [What actually happened]
Additional info: [Include gist of relevant config, logs, etc.]
The text was updated successfully, but these errors were encountered: