I can call payable functions that mutate the state of the contract just fine. I cannot call non-payable functions that mutate the state.
The problem isn't the function, I can call it fine on Remix IDE.
await contract.methods.test().send({from:account}).catch(err=>console.log(err))
What am I doing wrong?