Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(zk_stack): Use correct owner and db url #1178

Merged
merged 1 commit into from
Feb 21, 2024
Merged
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
7 changes: 4 additions & 3 deletions infrastructure/zk/src/hyperchain_wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ async function initHyperchain() {
const deployL2Weth = Boolean(process.env.DEPLOY_L2_WETH || false);
const deployTestTokens = Boolean(process.env.DEPLOY_TEST_TOKENS || false);

const governorAdrress = ethers.utils.computeAddress(governorPrivateKey!);
const initArgs: InitArgs = {
skipSubmodulesCheckout: false,
skipEnvSetup: true,
Expand All @@ -65,7 +66,7 @@ async function initHyperchain() {
deploy: deployTestTokens,
args: ['--private-key', deployerPrivateKey, '--envFile', process.env.CHAIN_ETH_NETWORK!]
},
deployerPrivateKeyArgs: ['--private-key', deployerPrivateKey]
deployerPrivateKeyArgs: ['--private-key', deployerPrivateKey, '--owner-address', governorAdrress]
};

await init(initArgs);
Expand Down Expand Up @@ -173,7 +174,7 @@ async function setHyperchainMetadata() {
'What is the connection URL for your Postgress 14 main database (format is postgres://<user>:<pass>@<hostname>:<port>/<database>)?',
name: 'dbUrl',
type: 'input',
initial: 'postgres://postgres@localhost/zksync_local',
initial: 'postgres://postgres:notsecurepassword@127.0.0.1:5432/zksync_local',
required: true
});

Expand All @@ -182,7 +183,7 @@ async function setHyperchainMetadata() {
'What is the connection URL for your Postgress 14 prover database (format is postgres://<user>:<pass>@<hostname>:<port>/<database>)?',
name: 'dbProverUrl',
type: 'input',
initial: 'postgres://postgres@localhost/prover_local',
initial: 'postgres://postgres:notsecurepassword@127.0.0.1:5432/prover_local',
required: true
});

Expand Down
Loading