I've written a smart contract that should return the balance of the current user using it and for some reason when I call the function it's returning the incorrect amount. I've used Remix and the Ropsten network for development/testing this.
function getBalance() public view returns (uint){
return msg.sender.balance;
}
I am seeing 115792089237316195423570985008687907853269984665640564039457581007913129639935
as the result even though I have 0.35 ETH in my Ropsten wallet
Anybody know why this is happening?
web3.eth.getBalance(account)
.