From 5bb517355e292b50d81b4abf28cb741712c13a7e Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Wed, 21 Sep 2016 14:10:11 +0200 Subject: ethclient: bugfix retrieving logs --- ethclient/ethclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ethclient/ethclient.go') 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, } -- cgit