Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const FRAUD_PROOF_WINDOW_SECONDS = env.FRAUD_PROOF_WINDOW_SECONDS || (60 * 60 *
const SEQUENCER_PUBLISH_WINDOW_SECONDS = env.SEQUENCER_PUBLISH_WINDOW_SECONDS || (60 * 30); // 30 min
const CHAIN_ID = env.CHAIN_ID || 420; // layer 2 chainid
const USE_LEDGER = env.USE_LEDGER || false;
const ADDRESS_MANAGER_ADDRESS = env.ADDRESS_MANAGER_ADDRESS || undefined;
const HD_PATH = env.HD_PATH || utils.defaultPath;
const BLOCK_TIME_SECONDS = env.BLOCK_TIME_SECONDS || 15;
const L2_CROSS_DOMAIN_MESSENGER_ADDRESS =
Expand Down Expand Up @@ -101,6 +102,7 @@ const RELAYER_PRIVATE_KEY = env.RELAYER_PRIVATE_KEY;
gasLimit: DEPLOY_TX_GAS_LIMIT
},
waitForReceipts: WAIT_FOR_RECEIPTS,
addressManager: ADDRESS_MANAGER_ADDRESS,
});

const { failedDeployments, AddressManager } = result;
Expand Down
6 changes: 3 additions & 3 deletions src/contract-deployment/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export const deploy = async (
'Lib_AddressManager',
config.deploymentSigner
).deploy()
}
if (config.waitForReceipts) {
await AddressManager.deployTransaction.wait()
if (config.waitForReceipts) {
await AddressManager.deployTransaction.wait()
}
}

const contractDeployConfig = await makeContractDeployConfig(
Expand Down