-
Notifications
You must be signed in to change notification settings - Fork 274
fix(evm): support 4byteTracer for tracer #1873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughAdds two UNRELEASED changelog entries and updates dependency versions: multiple public and indirect Go module bumps in Changes
Sequence Diagram(s)sequenceDiagram
participant CLI as CLI / Init
participant VM as VM Initializer
participant Tx as Tx Context
participant Tracer as 4byteTracer (optional)
note over CLI,VM #DDEBF7: VM initialization flow (high-level)
CLI->>VM: request VM init
alt before
VM->>VM: init without Tx context
VM->>Tracer: tracer init (legacy)
VM-->>CLI: VM ready
else after
VM->>Tx: obtain tx context
VM->>VM: init with Tx context
VM->>Tracer: init with 4byteTracer support
VM-->>CLI: VM ready (with tx & 4byteTracer)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
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 |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (1)
CHANGELOG.md (1)
5-7: Polish UNRELEASED wording for clarity/consistency.Suggest capitalizing VM and tightening the tracer line.
-* [#1869](https://github.com/crypto-org-chain/cronos/pull/1869) Add missing tx context during vm initialisation -* [#1872](https://github.com/crypto-org-chain/cronos/pull/1872) fix(evm): support 4byteTracer for tracer +* [#1869](https://github.com/crypto-org-chain/cronos/pull/1869) Add missing tx context during VM initialization +* [#1872](https://github.com/crypto-org-chain/cronos/pull/1872) EVM: support 4byteTracer in debug tracersIf you prefer to preserve exact PR titles, ignore.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
go.sumis excluded by!**/*.sum
📒 Files selected for processing (3)
CHANGELOG.md(1 hunks)go.mod(1 hunks)gomod2nix.toml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
- GitHub Check: Socket Security: Pull Request Alerts
- GitHub Check: integration_tests (slow)
- GitHub Check: Run golangci-lint
- GitHub Check: integration_tests (ica)
- GitHub Check: integration_tests (gas)
- GitHub Check: integration_tests (upgrade)
- GitHub Check: integration_tests (ibc_rly_evm)
- GitHub Check: integration_tests (gov)
- GitHub Check: integration_tests (ibc_update_client)
- GitHub Check: integration_tests (ibc)
- GitHub Check: integration_tests (ibc_rly_gas)
- GitHub Check: integration_tests (ibc_timeout)
- GitHub Check: integration_tests (unmarked)
- GitHub Check: build (macos-latest)
- GitHub Check: build (macos-14)
- GitHub Check: gomod2nix
- GitHub Check: build (ubuntu-latest)
- GitHub Check: unittest
- GitHub Check: semgrep-cloud-platform/scan
- GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (1)
gomod2nix.toml (1)
318-320: Confirm gomod2nix-regenerated hash — go.mod lookup failedVerification script returned no version from go.mod; gomod2nix.toml contains version v0.22.1-0.20250917021453-86f043d7a76a and hash sha256-5XfweV94HN5qlf1/SNta/aMMhLd750/3GStrAeMzjbM= (replaced = github.com/crypto-org-chain/ethermint). The check previously searched for github.com/evmos/ethermint, so it didn’t find a match. Regenerate the lockfile with: gomod2nix -w and commit the result, or confirm the hash was produced by gomod2nix (not hand‑edited).
thomas-nguy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use develop branch instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
go.sumis excluded by!**/*.sum
📒 Files selected for processing (2)
go.mod(4 hunks)gomod2nix.toml(4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (19)
- GitHub Check: build (ubuntu-latest)
- GitHub Check: gomod2nix
- GitHub Check: build (macos-latest)
- GitHub Check: build (macos-14)
- GitHub Check: unittest
- GitHub Check: integration_tests (slow)
- GitHub Check: Run golangci-lint
- GitHub Check: integration_tests (gov)
- GitHub Check: integration_tests (gas)
- GitHub Check: integration_tests (ibc_update_client)
- GitHub Check: integration_tests (upgrade)
- GitHub Check: integration_tests (ica)
- GitHub Check: integration_tests (unmarked)
- GitHub Check: integration_tests (ibc_rly_evm)
- GitHub Check: integration_tests (ibc_timeout)
- GitHub Check: integration_tests (ibc_rly_gas)
- GitHub Check: integration_tests (ibc)
- GitHub Check: semgrep-cloud-platform/scan
- GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (7)
gomod2nix.toml (3)
615-642: Config stack bumps (locafero, conc, afero, cast, pflag, viper) — LGTMThese align with go.mod and are consistent. Watch for Viper 1.21 behavior changes; smoke-test config/env overrides.
792-796: gRPC/protobuf patch bumps — safe; ensure generated code compatibilityPatch updates should be non-breaking. Verify no generator/runtime mismatches with your pinned genproto.
746-748: Module path is valid — no change required
go.yaml.in/yaml/v3 is a published Go module (pkg.go.dev → github.com/yaml/go-yaml), so the gomod2nix.toml entry is correct.go.mod (4)
37-45: Public deps bump (cast, pflag, viper, grpc, protobuf) — LGTMMatches gomod2nix.toml and expected indirect updates. Proceed.
224-229: Indirect bumps (locafero, conc, afero) — LGTMAligned with gomod2nix.toml; no concerns.
262-262: Unusual module path ‘go.yaml.in/yaml/v3’ — please verifyMirrors gomod2nix.toml. If not a real module, switch to gopkg.in/yaml.v3. See related comment in gomod2nix.toml.
309-309: Ethermint replace — matches gomod2nix; LGTMgo.mod replace (github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.22.1-0.20250918004400-f674c513792f) matches gomod2nix.toml; go.sum contains the corresponding crypto-org-chain/ethermint entries — refresh go.sum and nix lockfiles in CI.
backport #1872 #1869
Summary by CodeRabbit