diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-06 02:26:21 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-06 02:26:21 +0800 |
commit | 9f5e9eb38d7bf00ec24ce4ae09f910236f776641 (patch) | |
tree | 2ca472a6993fb6d1e437a8ff03b75a120b0c26b8 /rpc/args.go | |
parent | a6599404e49387af8cc5302b7f22005133af4ebf (diff) | |
download | dexon-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/args.go')
-rw-r--r-- | rpc/args.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpc/args.go b/rpc/args.go index 5686cbdec..42d9855b7 100644 --- a/rpc/args.go +++ b/rpc/args.go @@ -102,12 +102,12 @@ func (a *GetStorageArgs) requirements() error { return nil } -type GetStateArgs struct { +type GetStorageAtArgs struct { Address string Key string } -func (obj *GetStateArgs) UnmarshalJSON(b []byte) (err error) { +func (obj *GetStorageAtArgs) UnmarshalJSON(b []byte) (err error) { arg0 := "" if err = json.Unmarshal(b, &arg0); err == nil { obj.Address = arg0 @@ -116,7 +116,7 @@ func (obj *GetStateArgs) UnmarshalJSON(b []byte) (err error) { return errDecodeArgs } -func (a *GetStateArgs) requirements() error { +func (a *GetStorageAtArgs) requirements() error { if a.Address == "" { return NewErrorWithMessage(errArguments, "GetStorageAt requires an 'address' value as argument") } |