Compiling the contract

First of all you need to install hardhat-toolbox locally`

npm install --save-dev @nomicfoundation/hardhat-toolbox

And then run to compile`

npx hardhat compile

Deploying the contract

Run this command for contract deployment`

npx hardhat run scripts/deploy.js --network testnet

If you want to deploy your smart contract to Bahamut Mainnet, at the Deploying stage, you need to use mainnet instead of testnet after --network.

After running the deployment script you will have a contract address and you can interact with the contract using that address.

Last updated