chore: pin pragma, rename word-count constant, use relative test imports - #194
chore: pin pragma, rename word-count constant, use relative test imports#194thedavidmeister wants to merge 7 commits into
Conversation
… use relative imports Pin all src/ and test/ files to =0.8.25 (matching ERC4626Words.sol and all test contracts). Rename OPCODE_FUNCTION_POINTERS_LENGTH to ERC4626_WORD_COUNT in ERC4626Extern.sol to reflect shared word count rather than opcode-only size. Replace bare src/ and test/ import paths in test files with relative paths so tests remain resolvable when the repo is consumed as a soldeer dependency. Closes #28, #55, #136, #146, #149 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (10)
WalkthroughThis PR pins Solidity pragma directives to exact version =0.8.25 across multiple source and test files, and renames the misleading OPCODE_FUNCTION_POINTERS_LENGTH constant in ERC4626Extern.sol to ERC4626_WORD_COUNT, updating all references in source and test files accordingly. ChangesPragma pin and constant rename
Estimated code review effort: 2 (Simple) | ~10 minutes Related issues: Suggested labels: chore, consistency Suggested reviewers: none identified from available context Poem A rabbit hopped through pragma lines, 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ 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 |
…rites ^ [3b-attempt]
Split MockERC20 into test/utils/MockERC20.sol; update base imports. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…]: fix renamed constant import and forge fmt Replace OPCODE_FUNCTION_POINTERS_LENGTH with ERC4626_WORD_COUNT in ERC4626Words.extern.t.sol (import + 2 usages) to match the rename in ERC4626Extern.sol from the previous commit. Add forgefmt: disable-next-line comments to both function-pointer array declarations in ERC4626Extern.sol to stabilize the oscillating forge formatter for this specific syntax pattern. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
|
🤖 ai:vetter |
|
🤖 ai:vetter |
Summary
src/andtest/files topragma solidity =0.8.25(matchingERC4626Words.soland all test contracts — closes Inconsistent pragma version style: floating ^0.8.25 vs pinned =0.8.25 across files #55)OPCODE_FUNCTION_POINTERS_LENGTH→ERC4626_WORD_COUNTinERC4626Extern.sol: the constant is the shared word count (both opcode and integrity arrays), not the opcode-only length (closes Integrity pointer table sized by mis-named OPCODE_FUNCTION_POINTERS_LENGTH constant #28)src/…andtest/…import paths in test files with relative paths so they resolve when the repo is consumed as a soldeer dependency (closes Bare src/... imports break under submodule consumption #136, Bare src/... import breaks under submodule consumption #146, Baresrc/andtest/imports break under submodule consumption #149)No bytecode change (
bytecode_hash = "none",cbor_metadata = false).Test plan
forge buildpassesforge test --no-match-test Forkpasses (35/35)copy-artifactsCI passes (pragma/rename/imports are all bytecode-neutral)🤖 Generated with Claude Code
Summary by CodeRabbit
Chores
Tests