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
.getPastEvents('allEvents') returns an array of events.
Actual behavior
TypeError: Cannot read property 'fromBlock' of undefined
Method works fine if called with an empty object: .getPastEvents('allEvents', {})
Steps to reproduce the behavior
Construct a Web3 contract
Call contract.getPastEvents('allEvents')
Error Logs
(node:9157) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'fromBlock' of undefined
at Object.inputLogFormatter (.../node_modules/web3-core-helpers/dist/web3-core-helpers.cjs.js:173:15)
at AllPastEventLogsMethod.beforeExecution (.../node_modules/web3-core-method/dist/web3-core-method.cjs.js:1280:44)
at AllPastEventLogsMethod._callee$ (.../node_modules/web3-core-method/dist/web3-core-method.cjs.js:445:22)
Versions
Node: 8.11.4
Web3: 1.0.0-beta.43
The text was updated successfully, but these errors were encountered:
Expected behavior
.getPastEvents('allEvents')
returns an array of events.Actual behavior
TypeError: Cannot read property 'fromBlock' of undefined
Method works fine if called with an empty object:
.getPastEvents('allEvents', {})
Steps to reproduce the behavior
contract.getPastEvents('allEvents')
Error Logs
Versions
Node: 8.11.4
Web3: 1.0.0-beta.43
The text was updated successfully, but these errors were encountered: