Changed getters on account objects. Closes #610

* GetCode
* GetNonce
* GetStorage
* GetBalance
This commit is contained in:
obscuren
2015-04-01 23:22:03 +02:00
parent 344b3556eb
commit 4391c38215
2 changed files with 5 additions and 10 deletions

View File

@ -95,10 +95,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
return err
}
state := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address)
value := state.StorageString(args.Key)
*reply = common.ToHex(value.Bytes())
*reply = api.xethAtStateNum(args.BlockNumber).StorageAt(args.Address, args.Key)
case "eth_getTransactionCount":
args := new(GetTxCountArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {