Skip to content

Commit

Permalink
Remove finalSystemOwner from genesis script (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog authored Feb 11, 2025
1 parent 415860b commit 8b5d357
Showing 1 changed file with 0 additions and 6 deletions.
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

0 comments on commit 8b5d357

Please sign in to comment.