fix(scripts): verify #281 re-deploy check #413
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!413
Loading…
Reference in a new issue
No description provided.
Delete branch "cursor/verify-issue-281-f6dd"
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
QA verification of #281 found the implementation on
main(MR !405) correct, butscripts/verify-evm-dev-wallet-seed-anvil.shfalsely failed on the re-deploy step:yieldomega_anvil_deploy_devoverwritesDOUBin the caller scope — after the second deploy,DOUBalready equals the new proxy, soDOUB2 != DOUBcompared equal.head -1— simulationconsole.loglines precede on-chain broadcast addresses;start-local-anvil-stack.shalready usestail -1.This MR saves
DOUB_FIRSTbefore re-deploy and parses deploy log labels withtail -1in_yieldomega_extract_addr_from_log.Verification checklist (QA — issue #281)
bash scripts/verify-evm-dev-wallet-seed-anvil.shbash scripts/e2e-anvil.shbash scripts/e2e-anvil.shYIELDOMEGA_SEED_EVM_DEV_WALLETS=0 bash scripts/e2e-anvil.shKEY_EVM_1..3non-defaultANVIL_PORT=8547+ Anvil #1–#3 keys + verify scriptMINTER_ROLE missingmainINV-DEPLOY-281-*, e2e-anvil §281, guardrailsImplementation for #281 landed in !405; this MR only fixes the QA smoke script.
Follow-ups
localforTA/DOUB/… insideyieldomega_anvil_deploy_devto avoid future caller-scope leaks.changed the description
marked this merge request as draft
Security review
Commit reviewed:
356c93ed2098d979ae8f9a65f4522c85447a2a60Scope: Local Anvil dev/QA scripts only —
scripts/lib/anvil_deploy_dev.sh(deploy-log address extraction:head -1→tail -1) andscripts/verify-evm-dev-wallet-seed-anvil.sh(saveDOUB_FIRSTbefore second deploy to avoid caller-scope overwrite in re-deploy assertion).Outcome:
FINDINGS: 0medium+Analysis summary
Reviewed the diff and traced data flow for the changed paths:
_yieldomega_extract_addr_from_log— Parses locally generated ForgeDeployDevbroadcast logs (teeintoDEPLOY_LOG). Thelabelargument is always a hardcoded contract name from callers (Doubloon,TimeArena, etc.); it is not attacker-controlled. Switching totail -1selects the on-chain broadcast address over earlier simulationconsole.loglines — a correctness fix for local tooling, not a new trust boundary. Downstream seeding (seed-evm-dev-wallets-anvil.sh) already enforces loopback RPC and dev chain IDs (31337/6342/6343).verify-evm-dev-wallet-seed-anvil.sh— Test-only smoke script fix: preserves pre-redeploy token addresses beforeyieldomega_anvil_deploy_devmutates caller-scopeDOUB. No production/runtime surface; no user input.No injection, auth bypass, secret exposure, SSRF, or path-traversal paths were identified in the added/modified lines. Changes stay within the existing local-only Anvil dev workflow documented in GitLab #281.
Inline threads: none (no medium+ findings to anchor on the diff).
marked this merge request as ready
mentioned in issue #289
mentioned in commit
8cca0afba2mentioned in commit
748782130c