Skip to content

Commit

Permalink
Create fees.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAR2 authored Jan 23, 2025
1 parent e451991 commit a7bc0d1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions scripts/redeploy/fees.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { ethers, upgrades } from "hardhat";
import { ContractNames } from "../../src";
import { loadDeployment, upgrade } from "@airdao/deployments/deploying";

export async function main() {
const { chainId } = await ethers.provider.getNetwork();
const [deployer] = await ethers.getSigners();


const FORCEIMPORT_PREV_DEPLOYMENT = false;
if (FORCEIMPORT_PREV_DEPLOYMENT) {
const prevDeployment = loadDeployment(ContractNames.Fees, chainId).address;
const factory = await ethers.getContractFactory("Fees");
await upgrades.forceImport(prevDeployment, factory);
}
else {

await upgrade({
contractName: ContractNames.Fees,
networkId: chainId,
signer: deployer,
opts: {
// unsafeAllowRenames: true,
}
});
}

}


main()

0 comments on commit a7bc0d1

Please sign in to comment.