InjectiveLabs / injective-helix-demo

Decentralized Derivatives Trading. Any Market. Anytime. Anywhere.
Apache License 2.0
100 stars 71 forks source link

Error: account sequence mismatch #1014

Open Twelve57 opened 7 months ago

Twelve57 commented 7 months ago

Hello everyone, weird error here, if someone can help me with this. Thank you.

Describe the bug Got this error when trying to make a swap transaction: Error: account sequence mismatch, expected 13, got 12: incorrect account sequence [!injective!labs/cosmos-sdk@v0.47.3-inj-9/x/auth/ante/sigverify.go:269] With gas wanted: '50000000' and gas used: '83231'

Transactions were working few hours before, but now I just get this error.

To Reproduce

Expected behavior Should be able to swap multiple times without issue.

Also, out of this scope, but could you give me explanation about these two .env, I'm not sure to really understand the .env.example:

Thanks a lot for your answers, I'm really stuck with this error.

Lahnshen commented 7 months ago

This issue happens when your previous transaction gets stuck in the mempool (Probably due to the node not being up to sync), the solution would be to wait for that transaction to go through and once it does, the issue should fix.

There were some issues with nodes a while back but the issue should be fixed now.