HashIndexArgs

This commit is contained in:
Taylor Gerring
2015-03-26 14:17:32 +01:00
parent cb103c089a
commit 3472823be9
3 changed files with 66 additions and 6 deletions

View File

@ -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)