Commit 97b9a0f9 authored by Maurelian's avatar Maurelian

fix(ctb): Fix error on liveDeployer override

parent a8605769
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment