Skip to content

Commit 6b82b89

Browse files
Rename variables.
1 parent 090844c commit 6b82b89

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

espresso/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ OPERATOR_PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf
3434
# cast wallet address --private-key $OPERATOR_PRIVATE_KEY
3535
OPERATOR_ADDRESS=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
3636

37-
# Deployer address for contract ownership (index 3 from mnemonic)
37+
# BatchAuthenticator owner address for contract ownership (index 3 from mnemonic)
3838
# cast wallet address --mnemonic "test test ... junk" --hd-path "m/44'/60'/0'/0/3"
39-
DEPLOYER_ADDRESS=0x90F79bf6EB2c4f870365E785982E1f101E93b906
39+
BATCH_AUTHENTICATOR_OWNER_ADDRESS=0x90F79bf6EB2c4f870365E785982E1f101E93b906
4040

4141
# cast wallet address --mnemonic "test test ... junk" --hd-path "m/44'/60'/0'/0/1"
4242
PROPOSER_ADDRESS=0x70997970C51812dc3A010C7d01b50e0d17dc79C8

espresso/scripts/prepare-allocs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ dasel put -f "${DEPLOYER_DIR}/intent.toml" -s .chains.[0].roles.proposer -v "${P
9696
# contract addresses are deterministic.
9797
dasel put -f "${DEPLOYER_DIR}/state.json" -s create2Salt -v "0xaecea4f57fadb2097ccd56594f2f22715ac52f92971c5913b70a7f1134b68feb"
9898

99-
DEPLOYER_ADDRESS="${DEPLOYER_ADDRESS}" op-deployer apply --l1-rpc-url "${ANVIL_URL}" \
99+
BATCH_AUTHENTICATOR_OWNER_ADDRESS="${BATCH_AUTHENTICATOR_OWNER_ADDRESS}" op-deployer apply --l1-rpc-url "${ANVIL_URL}" \
100100
--workdir "${DEPLOYER_DIR}" \
101101
--private-key="${OPERATOR_PRIVATE_KEY}"
102102

op-deployer/pkg/deployer/pipeline/espresso.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)