aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 17:52:32 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 17:52:32 +0800
commitbd1a54f076935d8d42c1f6df2c54fdd4e7f978ac (patch)
tree47158073bb63a5aade110467d462b1191036850d /rpc/api.go
parent966cfa4bddb0fbe355dadb83541325a3b5c132f8 (diff)
downloaddexon-bd1a54f076935d8d42c1f6df2c54fdd4e7f978ac.tar.gz
dexon-bd1a54f076935d8d42c1f6df2c54fdd4e7f978ac.tar.zst
dexon-bd1a54f076935d8d42c1f6df2c54fdd4e7f978ac.zip
GetStorageArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/rpc/api.go b/rpc/api.go
index b5f759711..f5ce8acb6 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -106,11 +106,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
return err
}
- if err := args.requirements(); err != nil {
- return err
- }
-
- *reply = api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address).Storage()
+ *reply = api.xethAtStateNum(args.BlockNumber).State().SafeGet(args.Address.Hex()).Storage()
case "eth_getStorageAt":
args := new(GetStorageAtArgs)
if err := json.Unmarshal(req.Params, &args); err != nil {