Skip to content

Commit

Permalink
feat: new contract
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianvp committed Dec 15, 2024
1 parent 61818b5 commit 3363c0d
Show file tree
Hide file tree
Showing 4 changed files with 948 additions and 369 deletions.
6 changes: 3 additions & 3 deletions packages/hardhat/deploy/00_deploy_your_contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const deployYourContract: DeployFunction = async function (hre: HardhatRuntimeEn
const { deployer } = await hre.getNamedAccounts();
const { deploy } = hre.deployments;

await deploy("AIC", {
await deploy("AIC2", {
from: deployer,
// Contract constructor arguments
args: [],
Expand All @@ -33,12 +33,12 @@ const deployYourContract: DeployFunction = async function (hre: HardhatRuntimeEn
});

// Get the deployed contract to interact with it after deploying.
const yourContract = await hre.ethers.getContract<Contract>("AIC", deployer);
const yourContract = await hre.ethers.getContract<Contract>("AIC2", deployer);
console.log("👋 CONTRACT ADDRESS:", await yourContract.getAddress());
};

export default deployYourContract;

// Tags are useful if you have multiple deploy files and only want to run one of them.
// e.g. yarn deploy --tags YourContract
deployYourContract.tags = ["YourContract"];
deployYourContract.tags = ["AIC2"];
Loading

1 comment on commit 3363c0d

@vercel
Copy link

@vercel vercel bot commented on 3363c0d Dec 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.