Foundry Configuration
In the contracts directory of the RealEstateToken sample project you'll find the Foundry project.
There is not much configuration required to get ready for building and deploying the Solidity contracts. This configuration is already present in the sample project.
First, create a .env file in the contracts directory with the following content:
DUKONG_RPC_URL=https://evm.dukong.mantrachain.ioand then in a terminal source the .env file to make the DUKONG_RPC_URL environment variable available.
This step is merely a convenience used in command to deploy the contracts. It's not strictly necessary.
Next, open the foundry.toml file in your favourite editor. We need to add just a single line here that allows us to deploy our contracts with a Foundry script. You only need to add the following:
[profile.5887]just after the default Foundry configuration. Your foudnry.toml file should look like this:
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
[profile.5887]
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-optionsThis small addition will allow us to refer to the Dukong testnet by its chain ID when deploying the compiled contracts.
Last updated