Commit 83b0cad7 authored by obscuren's avatar obscuren

fixed block filter args

parent b8a667de
...@@ -482,7 +482,7 @@ func (args *BlockFilterArgs) UnmarshalJSON(b []byte) (err error) { ...@@ -482,7 +482,7 @@ func (args *BlockFilterArgs) UnmarshalJSON(b []byte) (err error) {
return NewInsufficientParamsError(len(obj), 1) return NewInsufficientParamsError(len(obj), 1)
} }
args.Earliest, err = toNumber(obj[0].FromBlock) args.Earliest, err = toNumber(obj[0].ToBlock)
if err != nil { if err != nil {
return NewDecodeParamError(fmt.Sprintf("FromBlock %v", err)) return NewDecodeParamError(fmt.Sprintf("FromBlock %v", err))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment