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 Call example on localnet #510

Merged
merged 5 commits into from
Dec 5, 2024
Merged
Changes from 2 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
23 changes: 12 additions & 11 deletions src/pages/developers/tutorials/call.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ With localnet running, open a new terminal window to compile and deploy the
```bash
npx hardhat compile --force
npx hardhat deploy --name Universal --network localhost --gateway 0x5FC8d32690cc91D4c39d9d3abcBD16989F875707
npx hardhat deploy --name Connected --json --network localhost --gateway 0x610178dA211FEF7D417bC0e6FeD39F05609AD788
npx hardhat deploy --name Connected --network localhost --gateway 0x610178dA211FEF7D417bC0e6FeD39F05609AD788
```

You should see output indicating the successful deployment of the contracts:
Expand All @@ -404,12 +404,12 @@ You should see output indicating the successful deployment of the contracts:
🔑 Using account: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

🚀 Successfully deployed "Universal" contract on localhost.
📜 Contract address: 0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB
📜 Contract address: 0xc351628EB244ec633d5f21fBD6621e1a683B1181

🔑 Using account: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

🚀 Successfully deployed "Conntected" contract on localhost.
📜 Contract address: 0x9E545E3C0baAB3E08CdfD552C960A1050f373042
🚀 Successfully deployed "Connected" contract on localhost.
📜 Contract address: 0xFD471836031dc5108809D173A067e8486B9047A3
```

**Note**: The deployed contract addresses may differ in your environment.
Expand All @@ -423,8 +423,8 @@ deployment:

```bash
npx hardhat connected-call \
--contract 0x9E545E3C0baAB3E08CdfD552C960A1050f373042 \
--receiver 0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB \
--contract 0xFD471836031dc5108809D173A067e8486B9047A3 \
--receiver 0xc351628EB244ec633d5f21fBD6621e1a683B1181 \
--network localhost \
--types '["string"]' alice
```
Expand All @@ -438,8 +438,8 @@ from your deployment:

```bash
npx hardhat universal-call \
--contract 0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB \
--receiver 0x9E545E3C0baAB3E08CdfD552C960A1050f373042 \
--contract 0xc351628EB244ec633d5f21fBD6621e1a683B1181 \
--receiver 0xFD471836031dc5108809D173A067e8486B9047A3 \
--zrc20 0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe \
--function "hello(string)" \
--network localhost \
Expand All @@ -453,11 +453,12 @@ app, run the following command:

```bash
npx hardhat universal-withdraw-and-call \
--contract 0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB \
--receiver 0x9E545E3C0baAB3E08CdfD552C960A1050f373042 \
--zrc20 0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c \
--contract 0xc351628EB244ec633d5f21fBD6621e1a683B1181 \
--receiver 0xFD471836031dc5108809D173A067e8486B9047A3 \
--zrc20 0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe \
--function "hello(string)" \
--amount 1 \
--call-options-is-arbitrary-call \
--network localhost \
--types '["string"]' hello
```
Expand Down