fix(frontend): single-call chainMismatchWriteMessage in WarBow refresh runRefresh (GitLab #173) #377
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega!377
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/glab-173-warbow-refresh-section-polish"
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?
closes #173. defensive partial #174 (does not close — separate post-loop warning state needed for that, leaving open).
what changed
frontend/src/pages/timecurve/TimeCurveProtocolWarbowRefreshSection.tsx— two small fixes from the #160 follow-ups:runRefreshextractschainMismatchWriteMessage(chainId)to acmlocal. before: helper invoked twice in the same branch (once inif, once assetTxErrarg with a dead?? "Wrong network for writes."fallback that could never fire). after: single call, behaviorally identical.loadFromIndexerwraps thefor (const c of chunk.candidates)iteration withArray.isArray(chunk.candidates). before: malformed indexer response that parses but lacks thecandidatesarray (older schema, intercepting proxy, partial JSON) throws inside the loop. the existing top-level catch at lines 131-136 (added infff7946per #170) catches it and surfacesfriendlyRevertFromUnknown, but the guard is cheap and means the user gets a clean empty-load instead of a friendly revert error. defensive only.verification
npm run typecheckclean.npm test -- --run— 50 files / 295 passed (no regressions, same count as pre-patch).npm run lint— 0 errors. one pre-existing fast-refresh warning inIndexerConnectivityContext.tsxuntouched.scope notes
@testing-library/reactprovider-mock harness which is its own MR.lastNextOffsettrack + warning state — separate from the Array.isArray guard added here. #174 stays open.cc @PlasticDigits
mentioned in commit
df7abc4d75mentioned in commit
b62524499a