From 3472823be94acc5b999dcb8741901b3e0c07f5d6 Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Thu, 26 Mar 2015 14:17:32 +0100 Subject: HashIndexArgs --- rpc/args.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpc/args.go') 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) -- cgit