From d5822cca26509297c86c87be331b634196aeefd0 Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <72015889+0xtekgrinder@users.noreply.github.com> Date: Fri, 30 Aug 2024 13:22:32 +0200 Subject: [PATCH] fix: guardian and governor are in right scope in createChain script (#4) --- scripts/DeployChain.s.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/DeployChain.s.sol b/scripts/DeployChain.s.sol index 63e806e..879f3cc 100644 --- a/scripts/DeployChain.s.sol +++ b/scripts/DeployChain.s.sol @@ -22,14 +22,14 @@ contract DeployChain is Script, CommonUtils { timelock = _chainToContract(chainId, ContractType.Timelock); } if (vm.envExists("GOVERNOR")) { - address governor = vm.envAddress("GOVERNOR"); + governor = vm.envAddress("GOVERNOR"); } else { - address governor = _chainToContract(chainId, ContractType.GovernorMultisig); + governor = _chainToContract(chainId, ContractType.GovernorMultisig); } if (vm.envExists("GUARDIAN")) { - address guardian = vm.envAddress("GUARDIAN"); + guardian = vm.envAddress("GUARDIAN"); } else { - address guardian = _chainToContract(chainId, ContractType.GuardianMultisig); + guardian = _chainToContract(chainId, ContractType.GuardianMultisig); } /** END complete */