Skip to content

Commit

Permalink
fix: deployment command (#295)
Browse files Browse the repository at this point in the history
* fix: deployment command in deploy.mdx

* update: deployment explanation
  • Loading branch information
MohamadSafi authored Oct 18, 2024
1 parent 5992484 commit 69d21f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/world-chain/developers/deploy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ group chat on [Telegram](https://t.me/worldcoindevelopers) or [Discord](https://
Now that you have a wallet and you funded it with World Chain Sepolia ETH, you can deploy the `HelloWorldChain` contract to World Chain Sepolia using the following `forge create` command:

```bash {{title: "Deploy the contract"}}
forge create src/HelloWorldChain.sol --rpc-url https://worldchain-sepolia.g.alchemy.com/public --private-key 0xcc1b30a6af68ea9a9917f1dda20c927704c5cdb2bbe0076901a8a0e40bf997c5
forge create src/HelloWorldChain.sol:HelloWorldChain --rpc-url https://worldchain-sepolia.g.alchemy.com/public --private-key 0xcc1b30a6af68ea9a9917f1dda20c927704c5cdb2bbe0076901a8a0e40bf997c5
```

Here we are using the `--rpc-url` flag to specify the RPC URL of the World Chain Sepolia network and the <br />`--private-key` flag to specify the private key of the wallet we generated earlier.
Here, we are using the <path>:<contractname> format to specify the contract. This tells Foundry where to find the contract file (src/HelloWorldChain.sol) and which contract within the file (HelloWorldChain) to deploy.
We also use the `--rpc-url` flag to specify the RPC URL of the World Chain Sepolia network and the <br />`--private-key` flag to specify the private key of the wallet we generated earlier.
On top of this we can also provide other flags like `-vvvvv` to get more verbose output from the deployment process, `--verify` to verify the contract on [Worldscan](https://worldscan.org) or [Blockscout](https://worldchain-sepolia.explorer.alchemy.com/) (alongside with an `--etherscan-api-key` flag) and
several other flags to toggle different features that you can find more about in the [Foundry documentation](https://book.getfoundry.sh/).

Expand Down

0 comments on commit 69d21f3

Please sign in to comment.