CryptoFly.us | CRYPTOCURRENCY BITCOIN SHIRTS CLOTHING APPAREL HATS

CRYPTO NEWS

Next Bitcoin price crash will be 'shallower' than 80%, says Pantera Capital CEO

Bitcoin price increases will also be less dramatic moving forward, the report suggests.

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?

Next Bitcoin price crash will be 'shallower' than 80%, says Pantera Capital CEO

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