Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Monad-flavored Foundry

> [!NOTE]
> In this Foundry template, the default chain is `monadTestnet`. If you wish to change it, change the network in `foundry.toml`
> In this Foundry template, the default chain is `monadMainnet`. If you wish to change it, change the network in `foundry.toml`

<h4 align="center">
<a href="https://docs.monad.xyz">Monad Documentation</a> | <a href="https://book.getfoundry.sh/">Foundry Documentation</a> |
Expand Down Expand Up @@ -54,7 +54,7 @@ forge snapshot
anvil
```

### Deploy to Monad Testnet
### Deploy to Monad Mainnet

First, you need to create a keystore file. Do not forget to remember the password! You will need it to deploy your contract.

Expand Down Expand Up @@ -82,7 +82,7 @@ forge create src/Counter.sol:Counter --account monad-deployer --broadcast
forge verify-contract \
<contract_address> \
src/Counter.sol:Counter \
--chain 10143 \
--chain 143 \
--verifier sourcify \
--verifier-url https://sourcify-api-monad.blockvision.org
```
Expand Down Expand Up @@ -128,7 +128,7 @@ forge create \
forge verify-contract \
<contract_address> \
src/Counter.sol:Counter \
--chain 10143 \
--chain 143 \
--verifier sourcify \
--verifier-url https://sourcify-api-monad.blockvision.org \
--constructor-args <abi_encoded_constructor_arguments>
Expand Down
4 changes: 2 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata_hash = "none" # disable ipfs
use_literal_content = true # use source code

# Monad Configuration
eth-rpc-url="https://testnet-rpc.monad.xyz"
chain_id = 10143
eth-rpc-url="https://rpc.monad.xyz"
chain_id = 143

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options