From 70f82b8f3b6703e5d014e07749d228530c93bb11 Mon Sep 17 00:00:00 2001 From: Artem Melnytskyi <112873874+amelnytskyi@users.noreply.github.com> Date: Thu, 15 Feb 2024 18:42:11 +0200 Subject: [PATCH] fix: updated cli create project command (#920) --- docs/build/test-and-debug/hardhat.md | 2 +- docs/build/tutorials/how-to/send-transaction-l1-l2.md | 2 +- .../smart-contract-development/paymasters/allowlist.md | 2 +- .../smart-contract-development/paymasters/erc20fixed.md | 2 +- .../tutorials/smart-contract-development/paymasters/gasless.md | 2 +- .../smart-contract-development/paymasters/timebased.md | 2 +- docs/build/tutorials/tooling-guides/api3.md | 2 +- docs/build/tutorials/tooling-guides/dia.md | 2 +- docs/zk-stack/running-a-hyperchain/locally.md | 2 +- docs/zk-stack/running-a-hyperchain/using-hyperchain.md | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/build/test-and-debug/hardhat.md b/docs/build/test-and-debug/hardhat.md index 07b620f280..b31565b979 100644 --- a/docs/build/test-and-debug/hardhat.md +++ b/docs/build/test-and-debug/hardhat.md @@ -22,7 +22,7 @@ To test our contract, we are going to use Hardhat, and `era_test_node` for rapid Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations: ```bash -npx zksync-cli@latest create-project test-greeter +npx zksync-cli create test-greeter ``` Choose `Hardhat + Solidity` to setup the project repository. The contract for this guide exists under `/contracts/Greeter.sol`. diff --git a/docs/build/tutorials/how-to/send-transaction-l1-l2.md b/docs/build/tutorials/how-to/send-transaction-l1-l2.md index b129e04681..ba9c9f8883 100644 --- a/docs/build/tutorials/how-to/send-transaction-l1-l2.md +++ b/docs/build/tutorials/how-to/send-transaction-l1-l2.md @@ -249,7 +249,7 @@ User needs to perform next steps: ```npm // install zksync-cli - npm i -g zksync-cli@latest + npm i -g zksync-cli zksync-cli dev config // choose: Dockerized node - Persistent state, includes L1 and L2 nodes // choose: BE and Portal (optional) diff --git a/docs/build/tutorials/smart-contract-development/paymasters/allowlist.md b/docs/build/tutorials/smart-contract-development/paymasters/allowlist.md index 34cdd717d0..a7080fdfb2 100644 --- a/docs/build/tutorials/smart-contract-development/paymasters/allowlist.md +++ b/docs/build/tutorials/smart-contract-development/paymasters/allowlist.md @@ -39,7 +39,7 @@ Each paymaster should implement the [IPaymaster](https://github.com/matter-labs/ Using `zksync-cli` we will create a new project with the required dependencies and boilerplate paymaster implementations: -
npx zksync-cli@latest create-project allowListPaymaster
+npx zksync-cli create allowListPaymaster
Choose `Hardhat + Solidity` to setup our project repository. The contract we will be adjusting exists under `/contracts/GeneralPaymaster.sol`.;
diff --git a/docs/build/tutorials/smart-contract-development/paymasters/erc20fixed.md b/docs/build/tutorials/smart-contract-development/paymasters/erc20fixed.md
index 3d98de5d0c..624034934c 100644
--- a/docs/build/tutorials/smart-contract-development/paymasters/erc20fixed.md
+++ b/docs/build/tutorials/smart-contract-development/paymasters/erc20fixed.md
@@ -36,7 +36,7 @@ Each paymaster should implement the `IPaymaster` interface. We will be using `zk
Using `zksync-cli` create a new project with required dependencies:
```bash
-npx zksync-cli@latest create erc20FixedPaymaster
+npx zksync-cli create erc20FixedPaymaster
```
Choose `Hardhat + Solidity` to setup our project repository. The contract we will be adjusting exists under `/contracts/ApprovalPaymaster.sol` and can be renamed to `ERC20fixedPaymaster.`
diff --git a/docs/build/tutorials/smart-contract-development/paymasters/gasless.md b/docs/build/tutorials/smart-contract-development/paymasters/gasless.md
index a58256047a..6c6a8d6b40 100644
--- a/docs/build/tutorials/smart-contract-development/paymasters/gasless.md
+++ b/docs/build/tutorials/smart-contract-development/paymasters/gasless.md
@@ -37,7 +37,7 @@ Each paymaster should implement the [IPaymaster](https://github.com/matter-labs/
Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations:
-`npx zksync-cli@latest create-project gaslessPaymaster`
+`npx zksync-cli create gaslessPaymaster`
Choose `Hardhat + Solidity` to setup the project repository. The contract for this guide exists under `/contracts/GeneralPaymaster.sol`.
diff --git a/docs/build/tutorials/smart-contract-development/paymasters/timebased.md b/docs/build/tutorials/smart-contract-development/paymasters/timebased.md
index 6a6f0216f8..1994051761 100644
--- a/docs/build/tutorials/smart-contract-development/paymasters/timebased.md
+++ b/docs/build/tutorials/smart-contract-development/paymasters/timebased.md
@@ -36,7 +36,7 @@ Each paymaster should implement the [IPaymaster](https://github.com/matter-labs/
Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations:
```bash
-npx zksync-cli@latest create-project timeBasedPaymaster
+npx zksync-cli create timeBasedPaymaster
```
Choose `Hardhat + Solidity` to setup the project repository. The contract for this guide exists under `/contracts/GeneralPaymaster.sol`.
diff --git a/docs/build/tutorials/tooling-guides/api3.md b/docs/build/tutorials/tooling-guides/api3.md
index b778d83462..f696f3f11d 100644
--- a/docs/build/tutorials/tooling-guides/api3.md
+++ b/docs/build/tutorials/tooling-guides/api3.md
@@ -39,7 +39,7 @@ Each paymaster should implement the [IPaymaster](https://github.com/matter-labs/
Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations:
-npx zksync-cli@latest create-project mockUSDCPaymaster
+npx zksync-cli create mockUSDCPaymaster
Choose `Hardhat + Solidity` to setup the project repository. The contract for this guide exists under `/contracts/ApprovalPaymaster.sol`.
diff --git a/docs/build/tutorials/tooling-guides/dia.md b/docs/build/tutorials/tooling-guides/dia.md
index 21a39d3e79..226dd977c6 100644
--- a/docs/build/tutorials/tooling-guides/dia.md
+++ b/docs/build/tutorials/tooling-guides/dia.md
@@ -45,7 +45,7 @@ The DIAOracle contract is designed to retrieve and store the latest price inform
Using `zksync-cli` create a new project with the required dependencies and boilerplate paymaster implementations:
-`npx zksync-cli@latest create-project DIAOracle`
+`npx zksync-cli create DIAOracle`
Choose `Hardhat + Solidity` to setup the project repository.
diff --git a/docs/zk-stack/running-a-hyperchain/locally.md b/docs/zk-stack/running-a-hyperchain/locally.md
index f55e9143ea..bdfc48f572 100644
--- a/docs/zk-stack/running-a-hyperchain/locally.md
+++ b/docs/zk-stack/running-a-hyperchain/locally.md
@@ -92,7 +92,7 @@ Your server contains both HTTPS as well as WebSocket (WS) services that are full
zkSync CLI allows you to easily interact and develop applications on your hyperchain. When executing any command with zksync-cli, you can specify RPC urls for both L1 and L2. Your local server contains RPCs for both. An example deposit command via the bridge would look like:
```bash
-npx zksync-cli@latest bridge deposit --rpc=http://localhost:3050 --l1-rpc=http://localhost:8545 --zeek
+npx zksync-cli bridge deposit --rpc=http://localhost:3050 --l1-rpc=http://localhost:8545 --zeek
```
### Using [Portal](https://github.com/matter-labs/dapp-portal)
diff --git a/docs/zk-stack/running-a-hyperchain/using-hyperchain.md b/docs/zk-stack/running-a-hyperchain/using-hyperchain.md
index c05ffe9b03..6383153228 100644
--- a/docs/zk-stack/running-a-hyperchain/using-hyperchain.md
+++ b/docs/zk-stack/running-a-hyperchain/using-hyperchain.md
@@ -16,7 +16,7 @@ By default your server is available at - but if you depl
When executing any command with zksync-cli, you can specify RPC urls for both L1 and L2 if you choose “localnet” as your network. An example deposit command would look like:
```bash
-npx zksync-cli@latest bridge deposit --rpc=http://localhost:3050 --l1-rpc=http://localhost:8545 --zeek
+npx zksync-cli bridge deposit --rpc=http://localhost:3050 --l1-rpc=http://localhost:8545 --zeek
```
## Using dApp Portal