good morning!!!!

Skip to content
Snippets Groups Projects
Commit 5bb51735 authored by Bas van Kervel's avatar Bas van Kervel
Browse files

ethclient: bugfix retrieving logs

parent c8d6efd6
No related branches found
No related tags found
No related merge requests found
......@@ -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,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment