So I got my index.js to connect with the Metamask wallet, and I created a contract object. My webpage loads without any errors, but when I try to interact with my new contract object (numberCall) it says that numberCall is undefined?
Mar 10, 2020, 2:08 PM
Most probably either you are initializing the contract instance the wrong way or calling the function wrong way. Try console logging the contract instance
Mar 10, 2020, 3:21 PM
This is my console output when I write console.log(numberCall);
Seems like the initialization part went ok right?
My solidity contract simply has 2 public uint256 that hold a number. I haven’t specified functions for them because solidity 0.6.0 does this automatically for public integers right?
Mar 10, 2020, 3:27 PM
Yep
Mar 10, 2020, 3:28 PM
So I think I finally fixed it (I had to add a full getter to the solidity code I think). The function getCount is now being called on the contract, but I’m not sure where the output (should be 0:uint256:10) is located in my console.log?
Mar 10, 2020, 3:52 PM
Been trying to reach you for almost 3 weeks now
Mar 11, 2020, 9:40 AM