I am trying to call a method from my smart contract (myMethod) and save the result (result) as a state (this.state.result) in react. However, my state is not being updated to the result. My code is provided below. How can I fix this?
await this.contractInstance.methods.myMethod().call({from: this.account, gas: 5000000}).then(result => {return this.state.result = result}).catch('That's a RIP');