mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-05 23:13:08 +00:00
testing web3 log processor
This commit is contained in:
parent
b31591d276
commit
74eff2f158
@ -114,7 +114,7 @@ namespace NethereumWorkflow
|
||||
var p = web3.Processing.Logs.CreateProcessor(
|
||||
action: logs.Add,
|
||||
minimumBlockConfirmations: 1,
|
||||
criteria: l => l.Address == address
|
||||
criteria: l => l.IsLogForEvent<TEvent>()
|
||||
);
|
||||
|
||||
var from = new BlockParameter(fromBlockNumber);
|
||||
@ -122,7 +122,6 @@ namespace NethereumWorkflow
|
||||
var ct = new CancellationTokenSource().Token;
|
||||
Time.Wait(p.ExecuteAsync(toBlockNumber: to.BlockNumber, cancellationToken: ct, startAtBlockNumberIfNotProcessed: from.BlockNumber));
|
||||
|
||||
|
||||
return logs
|
||||
.Where(l => l.IsLogForEvent<TEvent>())
|
||||
.Select(l => l.DecodeEvent<TEvent>())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user