CryptoFly.us | CRYPTOCURRENCY BITCOIN SHIRTS CLOTHING APPAREL HATS

CRYPTO NEWS

Altcoins take the next leg up as the total crypto market cap tops $2.63 trillion

TRAC, KDA and CTSI booked double-digit gains after BTC hit a new all-time high and the total crypto market cap hit $2.63 trillion.

Solidity event function not appearing in web3

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::Listen

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?

Altcoins take the next leg up as the total crypto market cap tops $2.63 trillion

Shopping cart
There are no products in the cart!
Continue shopping
0