Skip to content

fix(devnet): register all fee tokens in call mode - #1085

Merged
panos-xyz merged 1 commit into
mainfrom
fix/devnet-call-mode-tokens
Nov 9, 2026
Merged

panos-xyz merged 1 commit into
mainfrom
fix/devnet-call-mode-tokens

Conversation

@panos-xyz

@panos-xyz panos-xyz commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Devnet genesis previously pre-registered L2WETH (token ID 2) with NeedBalanceSlot: true (slot-mode fee deduction).
  • Mainnet and testnet only use call-mode fee tokens (balanceSlot unset → balanceOf/transfer).
  • Flip token 2 to call mode and pin the invariant in the unit test so local make devnet matches production.

Test plan

  • make -C ops/l2-genesis test
  • make devnet-up and confirm getTokenInfo(2) reports hasBalanceSlot=false

Summary by CodeRabbit

  • Bug Fixes
    • Aligned devnet token fee deduction with mainnet and testnet: all three tokens use the EVM-call path without a balance slot.
    • Updated token definition checks to match the new configuration.

Devnet pre-registered L2WETH (token 2) with a balanceSlot, unlike
mainnet/testnet which only use call-mode fee tokens. Align genesis so
local fee-token testing matches production.
@panos-xyz
panos-xyz requested review from a team and twcctop November 8, 2026 13:34

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

Claude Code Review is paused for this repository because its GitHub organization is not linked to your Claude organization.

To turn it back on, one person needs both roles: owner of the GitHub organization (or the account owner, for a personal repository) and admin or owner of your Claude organization. If that is not you, pass this on to someone who is.

Open Organization settings, Git providers and click Link next to the GitHub organization's name. If it is not listed, click Enable GitHub integration or Connect your GitHub first, whichever the page shows.

New pull requests are then reviewed as before. To get a review on one that is already open, someone with write access can comment @claude review.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The devnet token definitions now specify that all three tokens use call-mode fee deduction without balance slots. The test checks this configuration for every registered token.

Changes: Devnet token fee configuration

Layer / File(s) Summary
Align token configuration and assertions
ops/l2-genesis/morph-chain-ops/genesis/devnet_tokens.go, ops/l2-genesis/morph-chain-ops/genesis/devnet_tokens_test.go
Token 2 now sets NeedBalanceSlot to false and does not supply a BalanceSlot. The test requires every registered token to have NeedBalanceSlot false and a zero BalanceSlot. Comments describe the call-mode fee configuration and related token constraints.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: dylancai9, curryxbo

Merge Risk: Minimal · up to e646c

No actionable merge-blocking risk was identified. The devnet integration check remains unreported.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(devnet): register all fee tokens in call mode" matches the main change. The raw summary shows devnet token definitions now use call-mode fee deduction with NeedBalanceSlot false. The te…
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(devnet): register all fee tokens in call mode" matches the main change. The raw summary shows devnet token definitions now use call-mode fee deduction with NeedBalanceSlot false. The test was updated to require this for every registered token. The PR objectives confirm that L2WETH (token ID 2) moves from NeedBalanceSlot true to call mode to match mainnet and testnet. The title is specific and concise, and it follows the conventional commit style.

Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 2 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: beb86963-6866-4507-865f-4a6f820a6daf
Commits

Reviewing files that changed from the base of the PR and between e97d1b8 and e646cf4.

Files selected for processing: 2

  • ops/l2-genesis/morph-chain-ops/genesis/devnet_tokens.go
  • ops/l2-genesis/morph-chain-ops/genesis/devnet_tokens_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@panos-xyz
panos-xyz requested a review from dylanCai9 November 9, 2026 03:02
@panos-xyz
panos-xyz merged commit c843b99 into main Nov 9, 2026
15 checks passed
@panos-xyz
panos-xyz deleted the fix/devnet-call-mode-tokens branch November 9, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants