Various cleanups#8594
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
📝 WalkthroughWalkthroughThis PR reformats the Docker build workflow, renames fees and FVM option helpers, reformats verifier calls, and replaces byte-based Cadence address conversions with direct address construction across FVM, benchmark, and integration code. ChangesCI Workflow Formatting
Go Code Fixes and Cadence Updates
Estimated code review effort: 2 (Simple) | ~15 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
fvm/context.go (1)
245-250: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winKeep deprecated aliases for the renamed option helpers. Renaming these exported functions breaks downstream callers; add thin deprecated wrappers unless this is meant to be a breaking API change.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@fvm/context.go` around lines 245 - 250, The exported option helper WithContractRemovalRestricted was renamed and now breaks downstream callers; keep the new helper but add a thin deprecated wrapper under the old name so existing users still compile. Update the relevant option helpers in context.go by preserving the current implementation and introducing the deprecated alias function that forwards to it, matching the pattern used by other renamed APIs if present.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@fvm/context.go`:
- Around line 245-250: The exported option helper WithContractRemovalRestricted
was renamed and now breaks downstream callers; keep the new helper but add a
thin deprecated wrapper under the old name so existing users still compile.
Update the relevant option helpers in context.go by preserving the current
implementation and introducing the deprecated alias function that forwards to
it, matching the pattern used by other renamed APIs if present.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 68f29d81-d58b-4596-b847-5ac1342776a0
📒 Files selected for processing (11)
.github/workflows/ci.ymlcmd/util/cmd/verify_execution_result/cmd.goengine/verification/verifier/verifiers.gofvm/accounts_test.gofvm/blueprints/contracts.gofvm/context.gofvm/environment/system_contracts.gofvm/environment/system_contracts_test.gointegration/benchmark/scripts/scripts.gointegration/tests/access/cohort3/extended_indexing_test.gointegration/tests/access/cohort3/extended_indexing_transfers_test.go
There was a problem hiding this comment.
🧹 Nitpick comments (1)
fvm/environment/system_contracts.go (1)
123-123: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd regression coverage for the direct address conversions.
The PR context reports 0% patch coverage for this file. Add focused tests proving that direct
cadence.Address(...)conversion preserves addresses, including leading-zero addresses, across fee, balance, and storage-capacity calls.Also applies to: 160-160, 184-184, 210-210, 232-232, 245-245, 264-264
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@fvm/environment/system_contracts.go` at line 123, Add focused regression tests for the direct cadence.Address conversions used by the fee, balance, and storage-capacity contract calls. Verify normal and leading-zero addresses are preserved through each conversion path, covering the payer and all related address arguments identified around the affected conversion sites.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@fvm/environment/system_contracts.go`:
- Line 123: Add focused regression tests for the direct cadence.Address
conversions used by the fee, balance, and storage-capacity contract calls.
Verify normal and leading-zero addresses are preserved through each conversion
path, covering the payer and all related address arguments identified around the
affected conversion sites.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: a5948abe-c429-4163-813a-4fc0efa5ac47
📒 Files selected for processing (2)
.github/workflows/ci.ymlfvm/environment/system_contracts.go
feature/cadence-vmunrelated to Cadence VM workSummary by CodeRabbit
Bug Fixes
Style
Tests