Skip to content

Commit

Permalink
fix(ctb): Fix error on liveDeployer override
Browse files Browse the repository at this point in the history
  • Loading branch information
maurelian committed May 1, 2023
1 parent a860576 commit 97b9a0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/contracts-bedrock/src/deploy-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,11 @@ export const liveDeployer = async (opts: {
hre: HardhatRuntimeEnvironment
disabled: string | undefined
}): Promise<boolean> => {
let ret: boolean
if (!!opts.disabled) {
ret = false
return false
}
const { deployer } = await opts.hre.getNamedAccounts()
ret =
const ret =
deployer.toLowerCase() === opts.hre.deployConfig.controller.toLowerCase()
console.log('Setting live deployer to', ret)
return ret
Expand Down

0 comments on commit 97b9a0f

Please sign in to comment.