TimeCurveProtocolWarbowRefreshSection: chainMismatchWriteMessage called twice in runRefresh — extract to local #173
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#173
Loading…
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?
Severity: P3 — cosmetic / defensive
split out of #160 follow-up per @PlasticDigits — "all of these findings need to have issues opened for them".
location
frontend/src/pages/timecurve/TimeCurveProtocolWarbowRefreshSection.tsx:146-149(HEAD284c15c):chainMismatchWriteMessage(chainId)is invoked twice — once in theif, once in thesetTxErrargument. cosmetic redundancy. the?? "Wrong network for writes."fallback is also unreachable inside theif-true branch since the helper just returned a non-null value.fix shape
extract to a local:
matches the pattern used elsewhere in the codebase. drops the dead
??fallback.acceptance criteria
chainMismatchWriteMessage(chainId)called once inrunRefreshnpm run typecheck+npm testcleanorigin
split from #160 follow-up notes ("Finding 4: P3 cosmetic double-call"). bundling target: this would naturally MR alongside the P3 fresh-load reset (also from #160 follow-ups).
cc @PlasticDigits
mentioned in issue #175
mentioned in issue #176
mentioned in issue #160
mentioned in merge request !377
mentioned in commit
df7abc4d75