When I run my solidity function, it's supposed to return a string - but it returns [object Object]
I'm calling the function in my frontend and logging the result of the function call.
Here is my solidity function call
function getResult() returns(string) {
return result;
}
This is what I have on the frontend
async getResult() {
let contractInstance = await MyContract.at(this.state.contractAddress)
let result = await contractInstance.getResult()
console.log(`This is the result ${result}`);
}
JSON.stringify(result, null, 4)
and find out exactly what is "inside" that object?