fix(frontend): in-flight TX link during Terra confirming phase (#305) #827
No reviewers
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!827
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cursor/gitlab-issue-workflow-3325"
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
Fixes #305: Confirming… showed during
pollTxbut the in-flight TX: explorer link below the submit button did not.Root cause: separate
useStateupdates forphaseandpendingTxHashcould desync inside asyncmutationFn. The Playwright spec also delayed LCD REST instead of the JSON-RPCabci_querypath thatpollTxuses.Changes
useTerraBroadcastMutation: atomicuseReducerfor phase + hash;onMutatereset; signing no longer clears hash mid-mutation (CW20 allowance flows)GetTxabci_query during confirmingpollTxresolvesAcceptance checklist
terraBroadcast.test.tsterraBroadcast.test.tsmake test-frontend(872 passed)make test-frontendmake lint-frontendThird-party verification
Manual: Simulated Wallet or Keplr on LocalTerra — swap 0.001 EMBER→CORAL; during Confirming… expect TX: link under button.
Related: !778 (initial #305 plumbing)
changed the description
changed the description
Security review
Commit reviewed:
85145a2184fa0dd7473088863e772f1409d7117aScope:
useTerraBroadcastMutationreducer refactor (atomic phase +pendingTxHash), E2E poll delay route change (abci_queryGetTx), DOM integration test.Outcome:
FINDINGS: 0medium+Summary
Reviewed added/modified code for injection, authz, secret leakage, XSS, SSRF, and unsafe URL construction. No exploitable paths identified in this diff.
Areas examined
broadcastUiReducer+onMutateresetpendingTxHashstill sourced fromwallet.broadcastTx()viaonPhaseChange('confirming', { txHash }).TerraBroadcastPendingLinkrenders only whenphase === 'confirming'; React escapestitle/text; explorerhrefbuilt from static network base + hash (unchanged).phase === 'signing'; confirming always passes freshtxHashfrom broadcast. No new attacker-controlled sink.page.route('**/*', …)+JSON.parse(postData)abci_queryGetTx POSTs. Not shipped to production.Inline threads: none (no medium+ findings).
Automated security review (MR open webhook).
mentioned in commit
248c9997f7changed the description
mentioned in issue #305
mentioned in commit
3cb93d5f7amentioned in commit
000e8f3a39