-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
MetaMask returning bad value for solidity account.balance #2999
Comments
Any update on this? |
No, sorry, this hasn't received any attention at all. I’ve taken the steps to reproduce, here is what I did, and what I found: Solidity
Deployed to Ropsten at For account When balance is fetched like this:
it returns:
We call to infura:
It returned:
Interpreted by remix as: 0: uint256: 115792089237316195423570985008687907853269984665640564039457434007913129639935 Which is indeed the base 10 representation of the Infura result. One user in the remix issue reported:
This is the same number we got for this result. I tried many more times, and never was able to get a correct result from Infura here. Reaching out to Infura to see what they think, I wonder if this is a Geth bug. |
This appears to have been fixed in ethereum/go-ethereum#16999 I haven't confirmed this has been fixed, but I'll close it for now anyway since it doesn't seem to be a problem with MetaMask itself. |
Reported by a user, referred to us by the Solidity team here:
ethereum/solidity#2325
Seems we're returning a strange result for
account.balance
, likemsg.sender.balance
.The text was updated successfully, but these errors were encountered: