Bug: TransferStatusPage regresses to step 1 after failed hash resubmit #86
Labels
No labels
agent:implement
agent:ready
backend
bug
cannot-reproduce
confirmed
desktop
docs
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
high-risk
in-review
invalid
mobile
needs-triage
P0-critical
P1-high
P2-medium
P3-low
qa
QA
question
ready
report
responsive
security
security-escalate
smart-contract
solana
tablet
test-pass
ux
wallet-issue
wallet:keplr
wallet:metamask
wallet:station
wallet:walletconnect
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-bridge-monorepo#86
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?
After HASH SUBMISSION FAILED on step 2, clicking the resubmit button drops the TransferStatusPage back to step 1 (DEPOSIT ACTIVE, 'Confirming deposit on source chain') instead of staying on step 2 or retrying the submission. The deposit is already confirmed on-chain — page should not regress. Happens both from the Transfer Status page retry button and after manual SUBMIT HASH NOW on the Verify page. Found on v0.1.197/84cf7e4 testing Anvil->LocalTerra 100 TKNA.
mentioned in commit
001afd14ee@brouie Fix landed on
feat/solana-integration(commit001afd1): hash retry no longer resets lifecycle todeposited, so the stepper stays on Submit Hash; we calltriggerSubmit()afterresetForRetry(). Also tightened step index for retry/synthetic source-only lookups. Please verify on Anvil → LocalTerra when you can.@PlasticDigits confirming your PDA-keypair hypothesis — QA stack deploy-solana step fails with
DeclaredProgramIdMismatch(AnchorError 4100), so E2E verification is blocked.Attempted this session:
make start-qa→ deploy-solana loops on 'Error creating IDL account' with program74o1KKwuUvtrf6ozbjmVrARnoHpQ4WjsQ647TCTKe1mW— declared program id in source doesn't match deployed address. Bridge stack has Anvil + LocalTerra up but Solana step aborts the whole start flow (noSKIP_SOLANAflag in start-qa.sh, solana is baked intodocker compose up+deploy-solana).Code-level review of the fix
001afd1(pure frontend, 20 lines in TransferStatusPage.tsx):resetForRetry()no longer writeslifecycle: 'deposited'on retry (root cause of the regression)void triggerSubmit()called directly afterresetForRetry()— cleaner retry flowcurrentStepIdxhardened for 3 edge states:retryingHash,submitting-hashwith source present, synthetic source-only (source confirmed but dest null)triggerSubmitFix is present on main as of this morning's pull, code review looks correct. Actual reproduction of the failed-hash-retry flow deferred until Solana PDA is sorted and QA stack can come up clean (or until you want me to patch start-qa to allow a Solana-less bringup for EVM↔Terra verification).
Leaving open.
Set as low priority