How can I get contract mapping storage?
Considering this simple contract
contract Currency{
mapping(address=>uint) public balances;
function deposit(){
balances[tx.origin]++;
}
}
After deploying and calling deposit, I'd like to get contract storage
eth.getStorageAt("0x681afcc842a1a01f34ffb2c091e576aa78175d55",0)
but always getting same result : 0x0000000000000000000000000000000000000000000000000000000000000000
even if currency.balances.call(...) returns correct balance
Is there a way to retrieve entire balances map?