Open tidley opened 3 years ago
Thanks for the report! This should be fixed in 213b0d4deba9623fed462e65ffd482bf156a65b8, can you try that out?
Hi, thanks, unfortunately no data are returned when looking at past blocks containing a transaction.
Tested various start and end block values, also .current for endBlock. Still performing as before.
I also found that the .events has no filter or from/to.
Past events are not returned from an auto-generated .g.dart file function.
A generated .g.dart file for a smart contract includes the following
transferEvents
function, which works for live monitoring and prints the requested information when a new event occurs. The auto-generated function:Above function called using:
The issue is when using the fromBlock and toBlock parameters as they don't return data from the requested blocks. This has been tested using:
and by replacing
.transferEvents()
with:.transferEvents(fromBlock: startBlock, toBlock: endBlock)
.The block numbers have also been set to only look at a single block known to contain a transfer transaction, instead of the entire blockchain, yet no data are returned.