Skip to content

Commit

Permalink
fix: update salt for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Aug 22, 2023
1 parent 5ff1eb3 commit bf90772
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions deploy/01-deploy-proposal-sender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ import { contracts } from '../constants';

const contractName = 'InterchainProposalSender';
const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
const [deployer] = await hre.getUnnamedAccounts();
const { gateway, gasService } = contracts[hre.network.name];
const artifact = await hre.artifacts.readArtifact(contractName);
const salt = [deployer, artifact.bytecode, 'v1'].join();
const salt = [contractName, 'v1'].join(' ');
await deploy3(hre, contractName, salt, [gateway, gasService]);
};

Expand Down
3 changes: 1 addition & 2 deletions deploy/02-deploy-proposal-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const contractName = "InterchainProposalExecutor";
const deploy: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
const [deployer] = await hre.getUnnamedAccounts();
const { gateway } = contracts[hre.network.name];
const artifact = await hre.artifacts.readArtifact(contractName);
const salt = [deployer, artifact.bytecode, "v1"].join()
const salt = [contractName, "v1"].join(' ')
await deploy3(hre, contractName, salt, [gateway, deployer]);
};

Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HardhatRuntimeEnvironment } from "hardhat/types";
const {
deployCreate3Contract,
create3DeployContract,
} = require("@axelar-network/axelar-gmp-sdk-solidity");
import {contracts} from '../constants'

Expand All @@ -19,7 +19,7 @@ export async function deploy3(
.then((d) => d.address);

const artifact = await hre.artifacts.readArtifact(contractName);
const result = await deployCreate3Contract(
const result = await create3DeployContract(
create3Address,
signer,
artifact,
Expand Down

0 comments on commit bf90772

Please sign in to comment.