I have a react project I am running at http:\localhost:3000 which connects to ganache running at http:\localhost:7545. I deploy a small smart contract onto ganache which increments a counter and emits an event, like this… I want to listen to the Pinged and Ponged events from my contract. As this is just a helper project for something else I am
Tag: ganache
Error when attempting to call smart contract with javascript
I am trying to write a piece of javascript that calls a smart contract. The smart contract has been deployed to a local test net with truffle and ganache and the javascript is producing the following error: Javascript code: Solidity code: I am not sure if the issue is coming from me not handling the async request properly, the JSON