-
Notifications
You must be signed in to change notification settings - Fork 83
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
test(e2e): add fee distribution test in Kroma MPT #405
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
op-e2e/system_test.go
Outdated
@@ -1549,6 +1526,18 @@ func testFees(t *testing.T, cfg SystemConfig) { | |||
validatorRewardVaultStartBalance, err := l2Seq.BalanceAt(context.Background(), predeploys.ValidatorRewardVaultAddr, big.NewInt(rpc.EarliestBlockNumber.Int64())) | |||
require.Nil(t, err) | |||
|
|||
// Fee recipients after Kroma MPT |
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.
I think it would be nice to have a before and after conditional block, like if !sys.RollupConfig.IsKromaMPT(header.Time), or do you have another intention?
op-e2e/system_test.go
Outdated
// Wait until Kroma MPT migration completed when it's set | ||
if cfg.DeployConfig.L2GenesisKromaMPTTimeOffset != nil { | ||
mptTimeOffset := *cfg.DeployConfig.L2GenesisKromaMPTTimeOffset | ||
mptMigrationNextBlock := uint64(mptTimeOffset)/cfg.DeployConfig.L2BlockTime + 1 |
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.
Since the transition is applied from mptMigrationBlock, wouldn't it be more accurate to test by MPT block instead of next?
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.
LGTM
347670f
to
e610b40
Compare
Could you rebase please? |
85f4990
to
839536f
Compare
8b125c0
to
863d987
Compare
839536f
to
553f007
Compare
Description
Added the fee distribution test in Kroma MPT.
The setup for historical RPC node and other nodes are repeated in all tests for Kroma MPT, so I added a utility function and global variable to set up MPT environment in system config setup.