Mint page: recover from account sequence mismatch (fetch sequence at sign time + auto-retry on code 32) #499
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#499
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The mint/faucet page (from #473) surfaces the raw broadcast error when the connected account's on-chain sequence has advanced past the one the page signed with:
Seen on the TOPAZ mint page (mainnet soft launch). The account was concurrently active from another signer (an automated trader on the same wallet), so the page's cached sequence was 12 behind by the time MINT was clicked. The mint stays stuck on this error until the account info is refreshed.
Why this is worth handling in the frontend
This is the standard Cosmos SDK code-32 error and not a contract bug, but any user will hit it whenever the same account transacts from two places (second browser tab, mobile wallet, a bot) — or potentially when clicking MINT repeatedly across the 5-minute cooldown with a stale page. The raw error text gives no hint about what to do next, and "mint N times, paying gas each time" flows are especially exposed since each successful tx bumps the sequence.
Suggested UX improvement
account sequence mismatchbroadcast failure, re-fetch the sequence and retry once automatically before surfacing an error.Item 2 alone would resolve the common case invisibly; items 1 and 3 make repeated mints and concurrent-use scenarios robust.
Environment
terra1388y0ppe2c3dy4nrmnpqp7e4ggukkrnmpzfjadfeu0pu2rm9cvkslfzcenIssue verified, all 3 suggestions valid - however for 3 we must minimize text to comply with anti cognitive overload guidelines
mentioned in commit
c12918d7dbmentioned in merge request !1037
mentioned in merge request !1039
mentioned in commit
b734964e7bThanks for taking all three suggestions on board (!1039) — the auto-retry on code 32 is exactly what was needed for the mint flow.