aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-02 05:22:03 +0800
committerobscuren <geffobscura@gmail.com>2015-04-02 05:22:16 +0800
commit4391c3821567b1f5718b39ed660afb6cf65eeba3 (patch)
tree5d5ba9d1486d5fd7524e01717d1710aa4ec4708e /rpc
parent344b3556ebd8c96f96d78ad2d9d386e6ed66ce0a (diff)
downloadgo-tangerine-4391c3821567b1f5718b39ed660afb6cf65eeba3.tar
go-tangerine-4391c3821567b1f5718b39ed660afb6cf65eeba3.tar.gz
go-tangerine-4391c3821567b1f5718b39ed660afb6cf65eeba3.tar.bz2
go-tangerine-4391c3821567b1f5718b39ed660afb6cf65eeba3.tar.lz
go-tangerine-4391c3821567b1f5718b39ed660afb6cf65eeba3.tar.xz
go-tangerine-4391c3821567b1f5718b39ed660afb6cf65eeba3.tar.zst
go-tangerine-4391c3821567b1f5718b39ed660afb6cf65eeba3.zip
Changed getters on account objects. Closes #610
* GetCode * GetNonce * GetStorage * GetBalance
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 660bb3251..80dd27afb 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -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 {