Remove unused ZOLTU_PROXY_ADDRESS constant and dead test import - #47
Conversation
|
Warning Review limit reached
Next review available in: 45 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
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 |
What the issue asked
ZOLTU_PROXY_ADDRESSis declared insrc/lib/LibDataContract.soland re-exported through the test file's import list, but used by nothing anywhere. Issue #33 frames the triage: either exercise it (a deploy-via-Zoltu-proxy test) or remove the constant and the dead test import.What this PR does
Removes the dead surface:
src/lib/LibDataContract.sol: deletes theZOLTU_PROXY_ADDRESSconstant and its NatSpec (@dev+ upstream link).test/lib/LibDataContract.t.sol: deletesZOLTU_PROXY_ADDRESSfrom the import list.The README's "Zoltu deterministic proxy, etc." sentence is untouched: it describes deployment options left to the caller and never referenced the constant, so it stays true after removal.
Closes #33
Consumer check
grep -rn ZOLTU_PROXY_ADDRESS src/ test/on base: declaration + one import-list mention, zero uses.gh search code ZOLTU_PROXY_ADDRESS, org-scoped and unscoped): only this repo's two files match. Caveat: code search indexes public repos' default branches only.writeZoltu+testZoltu(PR test zoltu deploy #7), deliberately deleted with the whole write API in d449490 ("remove write functions", PR contract creation code #16). The constant is residue of that removal.Lifecycle ledger (remove vs exercise)
writeZoltu-shaped function anyway, which was itself deliberately removed.vm.etchof vendored Zoltu runtime bytecode or a forked network), not this library; build cost is a fork-dependent test, carrying cost is vendored third-party bytecode plus keeping a src constant whose only purpose is to be imported by a test — and it enshrines residue of an API the repo already ruled out. Issue guidance made this option conditional on finding a real consumer; none exists.BREAKING
Removes the exported symbol
ZOLTU_PROXY_ADDRESSfromsrc/lib/LibDataContract.sol. No known consumers (see consumer check). Any unindexed consumer must inline the well-known upstream address0x7A0D94F55792C434d74a40883C6ed8545E406D12(https://github.com/Zoltu/deterministic-deployment-proxy) instead of importing it from this package.Interaction with concurrent work
Issue #32 (dead write surface:
WriteError,DataContractMemoryContainer) is being worked concurrently and edits the same test import list and src file; this diff is kept minimal (the import-list edit touches only theZOLTU_PROXY_ADDRESSline and the trailing comma onWriteError) to minimize conflicts.QA
grep -rn ZOLTU_PROXY_ADDRESS src/ test/on base (declaration + import only), GitHub-widegh search code(only this repo matches), and git history (sole consumerwriteZoltu/testZoltudeleted in d449490)