Accept number or string for BlockFilterArgs to/fromBlock
This commit is contained in:
@ -759,10 +759,10 @@ func TestBlockFilterArgsWords(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestBlockFilterArgsNums(t *testing.T) {
|
||||
func TestBlockFilterArgsBool(t *testing.T) {
|
||||
input := `[{
|
||||
"fromBlock": 2,
|
||||
"toBlock": 3
|
||||
"fromBlock": true,
|
||||
"toBlock": false
|
||||
}]`
|
||||
|
||||
args := new(BlockFilterArgs)
|
||||
|
Reference in New Issue
Block a user