Skip to content

Commit bf1e854

Browse files
chore: update for hardhat CLI (#146)
minor fix to factor in changes to hardhat CLI for hardhat v3
1 parent 7ef9f82 commit bf1e854

5 files changed

Lines changed: 24 additions & 9 deletions

File tree

code/test-contracts/hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
2-
import { HardhatUserConfig } from 'hardhat/config';
2+
import type { HardhatUserConfig } from 'hardhat/config';
33
import '@nomicfoundation/hardhat-toolbox';
44
// ANCHOR: import
55
import '@matterlabs/hardhat-zksync';

content/tutorials/cross-chain-governance/_partials/_intro.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,18 @@ The `L2-counter` code includes all ZKsync dependencies and configurations for L2
3131
cd L1-governance
3232
```
3333

34-
1. Initialise and set up the L1 project.
34+
1. Initialize and set up the L1 project.
3535

3636
```sh
37-
npx hardhat init
37+
npx hardhat --init
3838
```
3939

40-
Select the option **Create a Typescript project** and accept the defaults for everything else.
40+
Select the option to use `hardhat-2` with `typescript` and `mocha-ethers`.
41+
Select yes to install the default dependencies.
42+
43+
::callout{icon="i-heroicons-exclamation-circle"}
44+
Hardhat v3 is not fully supported for `@matterlabs/hardhat-zksync`.
45+
::
4146

4247
::callout{icon="i-heroicons-exclamation-circle"}
4348
To interact with the ZKsync bridge contract using Solidity, you need

content/tutorials/custom-zk-chain/20.customizing-your-chain.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ Then, run the `hardhat init` command to generate a new project:
3939
:test-action{actionId="new-hh-project"}
4040

4141
```bash
42-
npx hardhat init
42+
npx hardhat --init
4343
```
4444

45-
Select the option **Create a Typescript project** and accept the default options for everything else.
45+
Select the option to use `hardhat-2` with `typescript` and `mocha-ethers`.
46+
Select yes to install the default dependencies.
47+
48+
::callout{icon="i-heroicons-exclamation-circle"}
49+
Hardhat v3 is not fully supported for `@matterlabs/hardhat-zksync`.
50+
::
4651

4752
Run the command below to install the necessary dependencies:
4853

content/tutorials/how-to-test-contracts/10.index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@ First, initialize a new Hardhat TypeScript project:
3030
:test-action{actionId="initialize-hardhat-project"}
3131

3232
```bash
33-
npx hardhat init
33+
npx hardhat --init
3434
```
3535

36-
Select the `Create a TypeScript project` option and install the sample project's dependencies: `hardhat` and `@nomicfoundation/hardhat-toolbox`.
36+
Select the option to use `hardhat-2` with `typescript` and `mocha-ethers`.
37+
Select yes to install the default dependencies.
38+
39+
::callout{icon="i-heroicons-exclamation-circle"}
40+
Hardhat v3 is not fully supported for `@matterlabs/hardhat-zksync`.
41+
::
3742

3843
To install the `hardhat-zksync` plugin, execute the following command:
3944

tests/utils/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export interface IRunCommand {
2323
action: 'runCommand';
2424
// the directory where it should run the command
2525
commandFolder?: string;
26-
// what to name the project folder (only used for npx hardhat init)
26+
// what to name the project folder (only used for npx hardhat --init)
2727
projectFolder?: string;
2828
// add something before the command
2929
preCommand?: string;

0 commit comments

Comments
 (0)