Skip to content

Commit 73cfd91

Browse files
committed
Don't initialize deployerAddress twice
1 parent 997a2db commit 73cfd91

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

script/deploy.s.sol

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ import "../src/gnosh/Sequencer.sol";
99
import "../src/gnosh/ValidatorRegistry.sol";
1010

1111
contract Deploy is Script {
12-
uint256 deployerPrivateKey;
13-
address deployerAddress;
14-
function deployKeyperSetManager() public returns (KeyperSetManager) {
12+
function deployKeyperSetManager(address deployerAddress) public returns (KeyperSetManager) {
1513

16-
deployerAddress = vm.addr(deployerPrivateKey);
1714
KeyperSetManager ksm = new KeyperSetManager(deployerAddress);
1815

1916
// add bootstrap keyper set
@@ -51,7 +48,7 @@ contract Deploy is Script {
5148
console.log("Deployer:", deployerAddress);
5249
vm.startBroadcast(deployKey);
5350

54-
KeyperSetManager ksm = deployKeyperSetManager();
51+
KeyperSetManager ksm = deployKeyperSetManager(deployerAddress);
5552
deployKeyBroadcastContract(ksm);
5653
deploySequencer();
5754
deployValidatorRegistry();

0 commit comments

Comments
 (0)