mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
parent
917baceda8
commit
f214dd6d51
1 changed files with 16 additions and 0 deletions
|
|
@ -86,6 +86,22 @@ func TestToFilterArg(t *testing.T) {
|
||||||
},
|
},
|
||||||
nil,
|
nil,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"with negative fromBlock and negative toBlock",
|
||||||
|
ethereum.FilterQuery{
|
||||||
|
Addresses: addresses,
|
||||||
|
FromBlock: big.NewInt(-1),
|
||||||
|
ToBlock: big.NewInt(-1),
|
||||||
|
Topics: [][]common.Hash{},
|
||||||
|
},
|
||||||
|
map[string]interface{}{
|
||||||
|
"address": addresses,
|
||||||
|
"fromBlock": "pending",
|
||||||
|
"toBlock": "pending",
|
||||||
|
"topics": [][]common.Hash{},
|
||||||
|
},
|
||||||
|
nil,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"with blockhash",
|
"with blockhash",
|
||||||
ethereum.FilterQuery{
|
ethereum.FilterQuery{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue