aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 19:11:28 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 19:11:28 +0800
commit9c4504dc41bbedb590db20519030224df66ce4b1 (patch)
treed5131e1b0301922783083dac1b3d837655b39986 /rpc/api.go
parent300d36b8640cf195db0f7997cc946ab5f164828f (diff)
downloadgo-tangerine-9c4504dc41bbedb590db20519030224df66ce4b1.tar
go-tangerine-9c4504dc41bbedb590db20519030224df66ce4b1.tar.gz
go-tangerine-9c4504dc41bbedb590db20519030224df66ce4b1.tar.bz2
go-tangerine-9c4504dc41bbedb590db20519030224df66ce4b1.tar.lz
go-tangerine-9c4504dc41bbedb590db20519030224df66ce4b1.tar.xz
go-tangerine-9c4504dc41bbedb590db20519030224df66ce4b1.tar.zst
go-tangerine-9c4504dc41bbedb590db20519030224df66ce4b1.zip
GetStorageAtArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/rpc/api.go b/rpc/api.go
index f5ce8acb6..10d2e529e 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -112,12 +112,9 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
- if err := args.requirements(); err != nil {
- return err
- }
- state := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address)
- value := state.StorageString(args.Key)
+ state := api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address.Hex())
+ value := state.StorageString(args.Key.Hex())
*reply = common.Bytes2Hex(value.Bytes())
case "eth_getTransactionCount":