diff options
author | Felix Lange <fjl@twurst.com> | 2016-09-21 21:08:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-21 21:08:14 +0800 |
commit | f85f46461f58436c2d6bb08e810f4abbf97d14be (patch) | |
tree | 5c54e3f338be9f8028fb23f34505d41192357f2b | |
parent | c8d6efd602042687236669b5c7624c93640ccfbc (diff) | |
parent | 5bb517355e292b50d81b4abf28cb741712c13a7e (diff) | |
download | dexon-f85f46461f58436c2d6bb08e810f4abbf97d14be.tar dexon-f85f46461f58436c2d6bb08e810f4abbf97d14be.tar.gz dexon-f85f46461f58436c2d6bb08e810f4abbf97d14be.tar.bz2 dexon-f85f46461f58436c2d6bb08e810f4abbf97d14be.tar.lz dexon-f85f46461f58436c2d6bb08e810f4abbf97d14be.tar.xz dexon-f85f46461f58436c2d6bb08e810f4abbf97d14be.tar.zst dexon-f85f46461f58436c2d6bb08e810f4abbf97d14be.zip |
Merge pull request #3021 from bas-vk/ethclient-logs
ethclient: bugfix retrieving logs
-rw-r--r-- | ethclient/ethclient.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index ffa8228cc..aa7796f32 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -269,7 +269,7 @@ func (ec *Client) NonceAt(ctx context.Context, account common.Address, blockNumb // FilterLogs executes a filter query. func (ec *Client) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]vm.Log, error) { var result []vm.Log - err := ec.c.CallContext(ctx, &result, "eth_getFilterLogs", toFilterArg(q)) + err := ec.c.CallContext(ctx, &result, "eth_getLogs", toFilterArg(q)) return result, err } @@ -281,7 +281,7 @@ func (ec *Client) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuer func toFilterArg(q ethereum.FilterQuery) interface{} { arg := map[string]interface{}{ "fromBlock": toBlockNumArg(q.FromBlock), - "endBlock": toBlockNumArg(q.ToBlock), + "toBlock": toBlockNumArg(q.ToBlock), "addresses": q.Addresses, "topics": q.Topics, } |