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