aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.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/args.go
parenta6599404e49387af8cc5302b7f22005133af4ebf (diff)
downloadgo-tangerine-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.tar.gz
go-tangerine-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.tar.zst
go-tangerine-9f5e9eb38d7bf00ec24ce4ae09f910236f776641.zip
Resolve storage/storageat
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go6
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")
}