Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit de66385

Browse files
authored
chore: updates foundry references in etn docs (#1026)
1 parent 3ab8816 commit de66385

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

docs/build/test-and-debug/era-test-node.md

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ Here's an example of what you should expect to see:
240240
{"jsonrpc":"2.0","result":"0x0000000000000000000000000000000000000000000000000000000000000012","id":1}
241241
```
242242

243-
Or, if you prefer, use [`foundry-zksync`](https://github.com/matter-labs/foundry-zksync). Make sure to install and configure `foundry-zksync` before proceeding (for installation instructions, please see this [link](https://github.com/matter-labs/foundry-zksync/tree/main#foundry-with-zksync-era-v01)):
243+
Or, if you prefer, use [`foundry-zksync`](https://github.com/matter-labs/foundry-zksync). Make sure to install and configure `foundry-zksync` before proceeding (for installation instructions, please see this [link](https://github.com/matter-labs/foundry-zksync?tab=readme-ov-file#-prerequisites)):
244244

245245
```bash
246-
zkcast call 0xe1134444211593Cfda9fc9eCc7B43208615556E2 "name()(string)" --rpc-url http://localhost:8011
246+
cast call 0xe1134444211593Cfda9fc9eCc7B43208615556E2 "name()(string)" --rpc-url http://localhost:8011
247247
```
248248

249249
Here's an example of what you should expect to see:
@@ -255,7 +255,7 @@ Uniswap
255255
Retrieve the balance of a particular contract:
256256

257257
```bash
258-
zkcast call 0x40609141Db628BeEE3BfAB8034Fc2D8278D0Cc78 "balanceOf(address)(uint256)" 0x40609141Db628BeEE3BfAB8034Fc2D8278D0Cc78 --rpc-url http://localhost:8011
258+
cast call 0x40609141Db628BeEE3BfAB8034Fc2D8278D0Cc78 "balanceOf(address)(uint256)" 0x40609141Db628BeEE3BfAB8034Fc2D8278D0Cc78 --rpc-url http://localhost:8011
259259
```
260260

261261
Here's an example of what you should expect to see:
@@ -266,25 +266,12 @@ Here's an example of what you should expect to see:
266266

267267
### Deploying contracts
268268

269-
For the deployment of your contracts, you have the flexibility to choose between two preferred methods: either by using Hardhat with the `hardhat-zksync-deploy` and `hardhat-zksync-solc` plugins, or via `foundry-zksync`. The following example will detail the process using `foundry-zksync`.
269+
For the deployment of your contracts, you have the flexibility to choose between two preferred methods: either by using Hardhat with the `@matter-labs/hardhat-zksync`, or via `foundry-zksync`. The following example will detail the process using `foundry-zksync`.
270270

271-
Before proceeding, ensure that you've compiled your contracts using `zkforge zk-build`. For instructions on how to do this, please refer to this [link](https://github.com/matter-labs/foundry-zksync#compile-with-zkforge-zk-build).
271+
Before proceeding, ensure that you've compiled your contracts using `forge build --zksync`.
272272

273273
```bash
274-
zkforge zkc contracts/Greeter.sol:Greeter --constructor-args "ZkSync and Foundry" --private-key 7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110 --rpc-url http://localhost:8011 --chain 260
275-
```
276-
277-
Here's an example of what you should expect to see:
278-
279-
```bash
280-
Deploying contract...
281-
+-------------------------------------------------+
282-
Contract successfully deployed to address: 0x0a40ecde17dc16c4001bf0e4f5d5ff1818219b3b
283-
Transaction Hash: 0x9d59bea38ca6f3cef365c23f339547bcc8ce28abb8344999ffffa5fa62c9ff8e
284-
Gas used: 2570407
285-
Effective gas price: 500
286-
Block Number: 8072361
287-
+-------------------------------------------------+
274+
forge create contracts/Greeter.sol:Greeter --constructor-args "ZkSync and Foundry" --private-key 7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110 --rpc-url http://localhost:8011 --chain 260 --zksync
288275
```
289276

290277
## Testing bootloader and system contracts
@@ -366,8 +353,7 @@ Ensure era-test-node is running in another process before executing yarn test.
366353
:::
367354

368355
```typescript
369-
import "@matterlabs/hardhat-zksync-deploy";
370-
import "@matterlabs/hardhat-zksync-solc";
356+
import "@matterlabs/hardhat-zksync";
371357

372358
module.exports = {
373359
zksolc: {
@@ -399,7 +385,7 @@ module.exports = {
399385
import { expect } from "chai";
400386
import { Wallet, Provider, Contract } from "zksync-ethers";
401387
import * as hre from "hardhat";
402-
import { Deployer } from "@matterlabs/hardhat-zksync-deploy";
388+
import { Deployer } from "@matterlabs/hardhat-zksync";
403389

404390
const RICH_WALLET_PK = "0x7726827caac94a7f9e1b160f7ea819f172f7b6f9d2a97f992c38edeab82d4110";
405391

0 commit comments

Comments
 (0)