Skip to content

Commit

Permalink
Remove redundant deployment for CudosAccessControl
Browse files Browse the repository at this point in the history
  • Loading branch information
maptuhec committed Apr 20, 2022
1 parent 185abc8 commit 91ab969
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
19 changes: 0 additions & 19 deletions solidity/contract-deployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from "axios";
import { exit } from "process";
import { start } from "node:repl";
import { SSL_OP_EPHEMERAL_RSA } from "node:constants";
import hre from "hardhat";

const args = commandLineArgs([
// the ethernum node used to deploy the contract
Expand Down Expand Up @@ -188,10 +187,6 @@ async function deploy() {


let cudosAccessControl:any
// const AcArts = getContractArtifacts("artifacts/contracts/CudosAccessControls.sol/CudosAccessControls.json");
// const AcFactory = new ethers.ContractFactory(AcArts.abi, AcArts.bytecode, wallet);

// console.log("Deploying AccessControl contract...")
cudosAccessControl = args["cudos-access-control"];

console.log("Starting Gravity contract deploy");
Expand Down Expand Up @@ -246,20 +241,6 @@ async function deploy() {
console.log("Gravity deployed at Address - ", gravity.address);
await submitGravityAddress(gravity.address);


await gravity.deployTransaction.wait(10)
console.log("Verifying contract on Etherscan...");

await hre.run("verify:verify", {
address: gravity.address,
constructorArguments: [
gravityId,
vote_power,
eth_addresses,
powers,
cudosAccessControl
],
});
}

function getContractArtifacts(path: string): { bytecode: string; abi: string } {
Expand Down
4 changes: 0 additions & 4 deletions solidity/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import "@nomiclabs/hardhat-waffle";
import "hardhat-gas-reporter";
import "hardhat-typechain";
import { task } from "hardhat/config";
import "@nomiclabs/hardhat-etherscan";

task("accounts", "Prints the list of accounts", async (args, hre) => {
const accounts = await hre.ethers.getSigners();
Expand Down Expand Up @@ -851,7 +850,4 @@ module.exports = {
mocha: {
timeout: 2000000
},
etherscan: {
apiKey: "2MD12YN15Z3CKRNJE3RCMAJ1QUN3W1CDXC"
}
};

0 comments on commit 91ab969

Please sign in to comment.