fix(prodfork): replace silent skips with vm.skip + dedup ORACLE_REGISTRY (audit #208 #213)#225
fix(prodfork): replace silent skips with vm.skip + dedup ORACLE_REGISTRY (audit #208 #213)#225hardyjosh wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…TRY (audit #208 #213) #213: ProdFork tests used `return;` in fork-availability modifiers, making forge report PASSED for tests that never ran an assertion. Replace with `vm.skip(true)` so missing fork env or unset prod addresses surface as SKIPPED in CI output instead of false-green. #208: ORACLE_REGISTRY address was independently encoded in both `src/lib/LibProdDeploy.sol` and `test/src/concrete/ProdFork.t.sol`'s `LibProdOracles`. Test now imports from `LibProdDeploy` so a future prod-address rotation only requires one edit. Closes #208, #213. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
f3a3434 to
e479257
Compare
e30bfc0 to
6903113
Compare
|
Folded into PR #222 (refactor: AggregatorV2V3Interface) — the vm.skip(true) hardening and LibProdDeploy.ORACLE_REGISTRY dedup now ship with the interface rename that already touches ProdFork.t.sol. |

#213: ProdFork tests used
return;in fork-availability modifiers,making forge report PASSED for tests that never ran an assertion. Replace
with
vm.skip(true)so missing fork env or unset prod addresses surfaceas SKIPPED in CI output instead of false-green.
#208: ORACLE_REGISTRY address was independently encoded in both
src/lib/LibProdDeploy.solandtest/src/concrete/ProdFork.t.sol'sLibProdOracles. Test now imports fromLibProdDeployso a futureprod-address rotation only requires one edit.
Closes #208, #213.
Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com