Skip to content
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

Remove finalSystemOwner from genesis script #66

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions testnet/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ var Flags = []cli.Flag{

type Config struct {
ProxyAdminOwner common.Address `json:"proxyAdminOwner"`
FinalSystemOwner common.Address `json:"finalSystemOwner"`
BatchSenderAddress common.Address `json:"batchSenderAddress"`
L2OutputOracleProposer common.Address `json:"l2OutputOracleProposer"`
P2PSequencerAddress common.Address `json:"p2pSequencerAddress"`
Expand All @@ -100,9 +99,6 @@ func (c *Config) Check() error {
if c.ProxyAdminOwner == (common.Address{}) {
return errors.New("missing proxy admin owner")
}
if c.FinalSystemOwner == (common.Address{}) {
return errors.New("missing final system owner")
}
if c.BatchSenderAddress == (common.Address{}) {
return errors.New("missing batch sender address")
}
Expand Down Expand Up @@ -240,7 +236,6 @@ func Main(cliCtx *cli.Context) error {
return crypto.PubkeyToAddress(crypto.ToECDSAUnsafe(common.FromHex(keys[name])).PublicKey)
}
genesisConfig.ProxyAdminOwner = toAddress("proxyAdminOwner")
genesisConfig.FinalSystemOwner = toAddress("finalSystemOwner")
genesisConfig.BatchSenderAddress = toAddress("batchSender")
genesisConfig.L2OutputOracleProposer = toAddress("l2OutputOracleProposer")
genesisConfig.P2PSequencerAddress = toAddress("p2pSequencer")
Expand All @@ -266,7 +261,6 @@ func Main(cliCtx *cli.Context) error {

// copy config from input
config.ProxyAdminOwner = genesisConfig.ProxyAdminOwner
config.FinalSystemOwner = genesisConfig.FinalSystemOwner
config.P2PSequencerAddress = genesisConfig.P2PSequencerAddress
config.BatchSenderAddress = genesisConfig.BatchSenderAddress
config.L2OutputOracleProposer = genesisConfig.L2OutputOracleProposer
Expand Down