Accept number or string for BlockFilterArgs to/fromBlock

This commit is contained in:
Taylor Gerring
2015-03-26 17:27:29 +01:00
parent 745dd5b7a5
commit 6661bc35ef
2 changed files with 14 additions and 11 deletions

View File

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