You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
@Haggins We're migrating to Web3 1.0 with Truffle V5 and it looks the filter implementation there is more reliable - have had good luck with the .getPastEvents method and we have some tests and example usage for that here
You can install a pre-release of V5 by running:
npm install truffle@next
Usage notes are are available at #1129 (See the Web3 1.0 section). NB: Web3 1.0 comes with a few breaking changes.
Hope you don't mind but closing because we won't be making any further improvements to truffle-contract for V4 and this appears to work expected for V5.
Issue
let myFilter = myContract.MyEvent({ fromBlock: x, toBlock: y })
doesn't work as both properties stay undefined when I inspectmyFilter
.According to this issue it should work.
Steps to Reproduce
Setup a filter of your choice and try to set options 'fromBlock' and 'toBlock'.
Example:
Expected Behavior
Both properties should be set in
myFilter.options
and hence, the filter should return ALL occurrences of that event within the given blocks.Actual Results
Both properties are undefined. The filter returns only the latest occurrence of that event.
Environment
truffle version
): v4.1.13node --version
): v8.11.3npm --version
): 6.2.0The text was updated successfully, but these errors were encountered: