11## Monad-flavored Foundry
22
33> [ !NOTE]
4- > In this Foundry template, the default chain is ` monadTestnet ` , If you wish to change it, change the network in ` foundry.toml `
4+ > In this Foundry template, the default chain is ` monadTestnet ` . If you wish to change it, change the network in ` foundry.toml `
55
66<h4 align =" center " >
77 <a href =" https://docs.monad.xyz " >Monad Documentation</a > | <a href =" https://book.getfoundry.sh/ " >Foundry Documentation</a > |
@@ -16,7 +16,7 @@ Foundry consists of:
1616- ** Forge** : Ethereum testing framework (like Truffle, Hardhat, and DappTools).
1717- ** Cast** : Swiss army knife for interacting with EVM smart contracts, sending transactions, and getting chain data.
1818- ** Anvil** : Local Ethereum node, akin to Ganache, Hardhat Network.
19- - ** Chisel** : Fast, utilitarian, and verbose solidity REPL.
19+ - ** Chisel** : Fast, utilitarian, and verbose Solidity REPL.
2020
2121## Documentation
2222
@@ -115,13 +115,23 @@ cast wallet address --account monad-deployer
115115### I have constructor arguments, how do I deploy my contract?
116116
117117``` shell
118- forge create src/Counter.sol:Counter --account monad-deployer --broadcast --constructor-args < constructor_arguments>
118+ forge create \
119+ src/Counter.sol:Counter \
120+ --account monad-deployer \
121+ --broadcast \
122+ --constructor-args < constructor_arguments>
119123```
120124
121125### I have constructor arguments, how do I verify my contract?
122126
123127``` shell
124- forge verify-contract < contract_address> < contract_name> --chain-id 10143 --verifier sourcify --verifier-url https://sourcify-api-monad.blockvision.org --constructor-args < abi_encoded_constructor_arguments>
128+ forge verify-contract \
129+ < contract_address> \
130+ src/Counter.sol:Counter \
131+ --chain 10143 \
132+ --verifier sourcify \
133+ --verifier-url https://sourcify-api-monad.blockvision.org \
134+ --constructor-args < abi_encoded_constructor_arguments>
125135```
126136
127137Please refer to the [ Foundry Book] ( https://book.getfoundry.sh/ ) for more information.
0 commit comments