aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-28 09:22:03 +0800
committerFelix Lange <fjl@twurst.com>2016-11-28 18:37:13 +0800
commit91bceb4acee23b1c92b288dd3a301a98eba9f4d3 (patch)
tree505d52106fe4b5122b29ec570f6fd578a824bfea
parentbe746628c76a14f47fc9fc44d0bcf386dd7b6483 (diff)
downloaddexon-91bceb4acee23b1c92b288dd3a301a98eba9f4d3.tar
dexon-91bceb4acee23b1c92b288dd3a301a98eba9f4d3.tar.gz
dexon-91bceb4acee23b1c92b288dd3a301a98eba9f4d3.tar.bz2
dexon-91bceb4acee23b1c92b288dd3a301a98eba9f4d3.tar.lz
dexon-91bceb4acee23b1c92b288dd3a301a98eba9f4d3.tar.xz
dexon-91bceb4acee23b1c92b288dd3a301a98eba9f4d3.tar.zst
dexon-91bceb4acee23b1c92b288dd3a301a98eba9f4d3.zip
ethclient: "addresses" -> "address" in filter query encoding
-rw-r--r--ethclient/ethclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go
index 4f2c0bcfb..00edd90e1 100644
--- a/ethclient/ethclient.go
+++ b/ethclient/ethclient.go
@@ -287,7 +287,7 @@ func toFilterArg(q ethereum.FilterQuery) interface{} {
arg := map[string]interface{}{
"fromBlock": toBlockNumArg(q.FromBlock),
"toBlock": toBlockNumArg(q.ToBlock),
- "addresses": q.Addresses,
+ "address": q.Addresses,
"topics": q.Topics,
}
if q.FromBlock == nil {