Commit 79babb89 authored by zhiqiangxu's avatar zhiqiangxu Committed by GitHub

reduce scope of `expandedOwners` (#11301)

parent c8e288f5
...@@ -455,8 +455,8 @@ contract Deploy is Deployer { ...@@ -455,8 +455,8 @@ contract Deploy is Deployer {
console.log("Deploying safe: %s with salt %s", _name, vm.toString(salt)); console.log("Deploying safe: %s with salt %s", _name, vm.toString(salt));
(SafeProxyFactory safeProxyFactory, Safe safeSingleton) = _getSafeFactory(); (SafeProxyFactory safeProxyFactory, Safe safeSingleton) = _getSafeFactory();
address[] memory expandedOwners = new address[](_owners.length + 1);
if (_keepDeployer) { if (_keepDeployer) {
address[] memory expandedOwners = new address[](_owners.length + 1);
// By always adding msg.sender first we know that the previousOwner will be SENTINEL_OWNERS, which makes it // By always adding msg.sender first we know that the previousOwner will be SENTINEL_OWNERS, which makes it
// easier to call removeOwner later. // easier to call removeOwner later.
expandedOwners[0] = msg.sender; expandedOwners[0] = msg.sender;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment