aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-06 02:26:21 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-06 02:26:21 +0800
commit9f5e9eb38d7bf00ec24ce4ae09f910236f776641 (patch)
tree2ca472a6993fb6d1e437a8ff03b75a120b0c26b8 /rpc/api.go
parenta6599404e49387af8cc5302b7f22005133af4ebf (diff)
downloaddexon-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.tar
dexon-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.tar.gz
dexon-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.tar.bz2
dexon-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.tar.lz
dexon-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.tar.xz
dexon-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.tar.zst
dexon-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.zip
Resolve storage/storageat
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/rpc/api.go b/rpc/api.go
index b97558bda..24491833d 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -311,7 +311,7 @@ func (p *EthereumApi) PushTx(args *PushTxArgs, reply *interface{}) error {
return nil
}
-func (p *EthereumApi) GetStateAt(args *GetStateArgs, reply *interface{}) error {
+func (p *EthereumApi) GetStorageAt(args *GetStorageAtArgs, reply *interface{}) error {
err := args.requirements()
if err != nil {
return err
@@ -333,7 +333,7 @@ func (p *EthereumApi) GetStateAt(args *GetStateArgs, reply *interface{}) error {
return nil
}
-func (p *EthereumApi) GetStorageAt(args *GetStorageArgs, reply *interface{}) error {
+func (p *EthereumApi) GetStorage(args *GetStorageArgs, reply *interface{}) error {
err := args.requirements()
if err != nil {
return err
@@ -527,14 +527,14 @@ func (p *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) error
return p.GetBalanceAt(args, reply)
case "eth_getStorage":
// TODO handle defaultBlock
- args, err := req.ToGetStateArgs()
+ args, err := req.ToStorageArgs()
if err != nil {
return err
}
- return p.GetStateAt(args, reply)
+ return p.GetStorage(args, reply)
case "eth_getStorageAt":
// TODO handle defaultBlock
- args, err := req.ToStorageAtArgs()
+ args, err := req.ToGetStorageAtArgs()
if err != nil {
return err
}