aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/args.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 21:17:32 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-26 21:17:32 +0800
commit3472823be94acc5b999dcb8741901b3e0c07f5d6 (patch)
treeb9dbde3af918ed179e0aff69a089c496bff0e105 /rpc/args.go
parentcb103c089a7c9238326e6a9bb336e375281ca622 (diff)
downloaddexon-3472823be94acc5b999dcb8741901b3e0c07f5d6.tar.gz
dexon-3472823be94acc5b999dcb8741901b3e0c07f5d6.tar.zst
dexon-3472823be94acc5b999dcb8741901b3e0c07f5d6.zip
HashIndexArgs
Diffstat (limited to 'rpc/args.go')
-rw-r--r--rpc/args.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/args.go b/rpc/args.go
index 34ed84fc2..d3449928b 100644
--- a/rpc/args.go
+++ b/rpc/args.go
@@ -342,7 +342,7 @@ func (args *BlockNumIndexArgs) UnmarshalJSON(b []byte) (err error) {
}
type HashIndexArgs struct {
- Hash string
+ Hash common.Hash
Index int64
}
@@ -361,7 +361,7 @@ func (args *HashIndexArgs) UnmarshalJSON(b []byte) (err error) {
if !ok {
return NewInvalidTypeError("hash", "not a string")
}
- args.Hash = arg0
+ args.Hash = common.HexToHash(arg0)
if len(obj) > 1 {
arg1, ok := obj[1].(string)