-
Notifications
You must be signed in to change notification settings - Fork 38
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
Local network: pass mgmt contract to l2 contract deploy script #1664
Conversation
WalkthroughThe changes across the two files indicate an update to the management contract address used within a testnet launcher and a contract deployer tool. A new parameter for specifying the management contract address has been introduced to the Changes
TipsChat with CodeRabbit Bot (
|
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.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files selected for processing (2)
- testnet/launcher/docker.go (1 hunks)
- testnet/launcher/l2contractdeployer/cmd/main.go (1 hunks)
Additional comments: 1
testnet/launcher/l2contractdeployer/cmd/main.go (1)
- 16-22:
The addition of the management contract address to the L2 contract deployment configuration is correctly implemented.
l2cd.WithL2Host("sequencer-host"), | ||
l2cd.WithL2WSPort(81), | ||
l2cd.WithL1PrivateKey("f52e5418e349dccdda29b6ac8b0abe6576bb7713886aa85abea6181ba731f9bb"), | ||
l2cd.WithManagementContractAddress("0xeDa66Cc53bd2f26896f6Ba6b736B1Ca325DE04eF"), | ||
l2cd.WithMessageBusContractAddress("0xFD03804faCA2538F4633B3EBdfEfc38adafa259B"), | ||
l2cd.WithL2PrivateKey("8dfb8083da6275ae3e4f41e3e8a8c19d028d32c9247e24530933782f2a05035b"), | ||
l2cd.WithHocPKString("6e384a07a01263518a09a5424c7b6bbfc3604ba7d93f47e3a455cbdd7f9f0682"), |
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.
Consider using a configuration file or environment variable for the management contract address to avoid hardcoding it and to facilitate easier updates or configurations for different environments.
Why this change is needed
Didn't realise the L2 contract deployer was called from this other place, hadn't added the new mgmt contract address arg.
PR checks pre-merging
Please indicate below by ticking the checkbox that you have read and performed the required
PR checks