Skip to content

Commit

Permalink
fix deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
polymorpher committed Sep 19, 2022
1 parent f8d7cf9 commit 7f27f3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions miniwallet/deploy/001_deploy_miniWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const deployFunction: DeployFunction = async function (
const { deployments, getNamedAccounts } = hre
const { deploy } = deployments
const { deployer } = await getNamedAccounts()

const network = hre.network.name
// Get the deployment configuration
console.log(`Deploying to network: ${hre.network.name}`)
console.log(`Deploying to network: ${network}`)

const deployedContract = await deploy('MiniWallet', {
contract: 'MiniWallet',
Expand All @@ -26,10 +26,10 @@ const deployFunction: DeployFunction = async function (
init: {
methodName: 'initialize',
args: [
config.test.miniWallet.initialOperatorThreshold,
config.test.miniWallet.initialOperators,
config.test.miniWallet.initialUserLimit,
config.test.miniWallet.initialAuthLimit
config[network].miniWallet.initialOperatorThreshold,
config[network].miniWallet.initialOperators,
config[network].miniWallet.initialUserLimit,
config[network].miniWallet.initialAuthLimit
]
}
}
Expand Down

0 comments on commit 7f27f3f

Please sign in to comment.