Skip to content

Commit

Permalink
chore(hyperchains): fix zk stack cli (matter-labs#876)
Browse files Browse the repository at this point in the history
## What ❔

Fixes zk stack cli when spinning up a hyperchain without WETH bridge

## Why ❔

Because it was broken. Some changes over the last month removed a param
that used to exist

## Checklist

- [X] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [X] Tests for the changes have been added / updated.
- [X] Documentation comments have been added / updated.
- [X] Code has been formatted via `zk fmt` and `zk lint`.
- [X] Spellcheck has been run via `zk spellcheck`.
  • Loading branch information
githubdoramon authored Jan 15, 2024
1 parent d64f584 commit 4ff92c4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions infrastructure/zk/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,7 @@ export async function init(initArgs: InitArgs = DEFAULT_ARGS) {
if (deployerL2ContractInput.includeL2WETH) {
await announced('Initializing L2 WETH token', contract.initializeWethToken(governorPrivateKeyArgs));
}
await announced(
'Initializing governance',
contract.initializeGovernance([
...governorPrivateKeyArgs,
!deployerL2ContractInput.includeL2WETH ? ['--skip-weth-bridge'] : []
])
);
await announced('Initializing governance', contract.initializeGovernance(governorPrivateKeyArgs));
}

// A smaller version of `init` that "resets" the localhost environment, for which `init` was already called before.
Expand Down

0 comments on commit 4ff92c4

Please sign in to comment.