I've got an issue that I'm having trouble figuring out. I have this smart contract with a function that transfers funds from the sender to the contract, and writes some data into persistent storage. Nothing too complicated. When I call this function for the first time after a while of inactivity, the sendTransaction call succeeds, but the result from getTransaction using the hash from sendTransaction will return a failed transaction.
However, when I copy/paste the parameters and make the exact same call on the CLI, it works. And after that, all subsequent calls to the same function using the JS client will work even if they didn't work before. Has anyone run into this issue before?