I have a contract with the following event (using 0.4.24):
event UpdateProgress(bool _gameInProgress);
I am registering the contract like this:
import Web3 from 'web3';
import address from './address';
const web3 = new Web3(window.web3.currentProvider);
const abi = [{...}}
// Access to our contract that exists on the blockchain.
export default new web3.eth.Contract(abi, address);
When I call the events object in my JS:
// Contract
import leaderboard from './leaderboard';
console.log(leaderboard.events.allEvents());
All events is empty. What am I doing incorrect here?