Skip to content

Commit

Permalink
Deployment script for WalletProposalValidator contract
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zimnoch committed Dec 5, 2023
1 parent 87fedab commit 984b12b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions solidity/deploy/39_deploy_wallet_proposal_validator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { HardhatRuntimeEnvironment } from "hardhat/types"
import { DeployFunction } from "hardhat-deploy/types"

const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const { deployments, helpers, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

const Bridge = await deployments.get("Bridge")

const walletProposalValidator = await deploy("WalletProposalValidator", {
from: deployer,
args: [Bridge.address],
log: true,
waitConfirmations: 1,
})

if (hre.network.tags.etherscan) {
await helpers.etherscan.verify(walletProposalValidator)
}

if (hre.network.tags.tenderly) {
await hre.tenderly.verify({
name: "WalletProposalValidator",
address: walletProposalValidator.address,
})
}
}

export default func

func.tags = ["WalletProposalValidator"]
//func.dependencies = ["Bridge"]

Check failure on line 33 in solidity/deploy/39_deploy_wallet_proposal_validator.ts

View workflow job for this annotation

GitHub Actions / contracts-format

Expected exception block, space or tab after '//' in comment

0 comments on commit 984b12b

Please sign in to comment.