Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

Commit f696185

Browse files
authored
Fix single contract deployment (#194)
* Add address manager address to env * Remove wait for tx if no AM is deployed
1 parent b294fe6 commit f696185

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/deploy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const FRAUD_PROOF_WINDOW_SECONDS = env.FRAUD_PROOF_WINDOW_SECONDS || (60 * 60 *
2323
const SEQUENCER_PUBLISH_WINDOW_SECONDS = env.SEQUENCER_PUBLISH_WINDOW_SECONDS || (60 * 30); // 30 min
2424
const CHAIN_ID = env.CHAIN_ID || 420; // layer 2 chainid
2525
const USE_LEDGER = env.USE_LEDGER || false;
26+
const ADDRESS_MANAGER_ADDRESS = env.ADDRESS_MANAGER_ADDRESS || undefined;
2627
const HD_PATH = env.HD_PATH || utils.defaultPath;
2728
const BLOCK_TIME_SECONDS = env.BLOCK_TIME_SECONDS || 15;
2829
const L2_CROSS_DOMAIN_MESSENGER_ADDRESS =
@@ -101,6 +102,7 @@ const RELAYER_PRIVATE_KEY = env.RELAYER_PRIVATE_KEY;
101102
gasLimit: DEPLOY_TX_GAS_LIMIT
102103
},
103104
waitForReceipts: WAIT_FOR_RECEIPTS,
105+
addressManager: ADDRESS_MANAGER_ADDRESS,
104106
});
105107

106108
const { failedDeployments, AddressManager } = result;

src/contract-deployment/deploy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ export const deploy = async (
3232
'Lib_AddressManager',
3333
config.deploymentSigner
3434
).deploy()
35-
}
36-
if (config.waitForReceipts) {
37-
await AddressManager.deployTransaction.wait()
35+
if (config.waitForReceipts) {
36+
await AddressManager.deployTransaction.wait()
37+
}
3838
}
3939

4040
const contractDeployConfig = await makeContractDeployConfig(

0 commit comments

Comments
 (0)