From 69d21f306daa2bdea72d2911305bd8cffada36f9 Mon Sep 17 00:00:00 2001 From: Mohammad Safi Date: Sat, 19 Oct 2024 01:10:33 +0300 Subject: [PATCH] fix: deployment command (#295) * fix: deployment command in deploy.mdx * update: deployment explanation --- src/pages/world-chain/developers/deploy.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/world-chain/developers/deploy.mdx b/src/pages/world-chain/developers/deploy.mdx index edb57d0e..a3de2f1c 100644 --- a/src/pages/world-chain/developers/deploy.mdx +++ b/src/pages/world-chain/developers/deploy.mdx @@ -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
`--private-key` flag to specify the private key of the wallet we generated earlier. +Here, we are using the : 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
`--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/).