Deployment with Hardhat
Using Hardhat Ignition
In your Hardhat project, add Remote Network to
hardhat.config.js
for MANTRA Dukong EVM
Example on how to configure variables for user-specific values in Hardhat:
Set Up Ignition Modules:
Create a directory named
ignition
in the project's root directory.Inside the
ignition
directory, create another directory namedmodules
.Within the
modules
directory, create a<YourFile>.js
file.
Example directory structure:
Deploy:
To tell Hardhat to connect to a specific Ethereum network, you can use the
--network
parameter when running any task, like this:
Example result from running the above command
Last updated