@@ -37,21 +37,21 @@ func DeployEspresso(env *Env, intent *state.Intent, st *state.State, chainID com
3737 }
3838
3939 var eo opcm.DeployEspressoOutput
40- // Read deployer address from environment variable, fallback to env.Deployer
41- var deployerAddress common.Address
42- if deployerEnv := os .Getenv ("DEPLOYER_ADDRESS " ); deployerEnv != "" {
43- deployerAddress = common .HexToAddress (deployerEnv )
44- lgr .Info ("Using deployer address from DEPLOYER_ADDRESS env var" , "address" , deployerAddress .Hex ())
40+ // Read batch authenticator owner address from environment variable, fallback to env.Deployer
41+ var batchAuthenticatorOwnwerAddress common.Address
42+ if batchAuthenticatorOwnerEnv := os .Getenv ("BATCH_AUTHENTICATOR_OWNER_ADDRESS " ); batchAuthenticatorOwnerEnv != "" {
43+ batchAuthenticatorOwnwerAddress = common .HexToAddress (batchAuthenticatorOwnerEnv )
44+ lgr .Info ("Using batch authenticator owner address from BATCH_AUTHENTICATOR_OWNER_ADDRESS env var" , "address" , batchAuthenticatorOwnwerAddress .Hex ())
4545 } else {
46- deployerAddress = env .Deployer
47- lgr .Info ("Using deployer address from env.Deployer" , "address" , deployerAddress .Hex ())
46+ batchAuthenticatorOwnwerAddress = env .Deployer
47+ lgr .Info ("Using deployer address from env.Deployer" , "address" , batchAuthenticatorOwnwerAddress .Hex ())
4848 }
4949
5050 eo , err = opcm .DeployEspresso (env .L1ScriptHost , opcm.DeployEspressoInput {
5151 Salt : st .Create2Salt ,
5252 PreApprovedBatcherKey : chainIntent .PreApprovedBatcherKey ,
5353 NitroTEEVerifier : nvo .NitroTEEVerifierAddress ,
54- }, deployerAddress )
54+ }, batchAuthenticatorOwnwerAddress )
5555 if err != nil {
5656 return fmt .Errorf ("failed to deploy espresso contracts: %w" , err )
5757 }
0 commit comments