Deployment with Hardhat
Last updated
Last updated
Hardhat is a development tool for Ethereum, aiding in smart contract creation with features for compiling, testing, debugging, and deployment of Solidity code.
Clone the tutorial at to get started.
In your Hardhat project, add Remote Network to hardhat.config.js
for MANTRA Omstead (COSMOS+EVM)
Example on how to configure variables for user-specific values in Hardhat:
Set Up Ignition Modules:
(We have created a sample module for you in the tutorial repository)
Create a directory named ignition
in the project's root directory.
Inside the ignition
directory, create another directory named modules
.
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