Skip to content

Commit 9f41818

Browse files
Merge pull request #93 from threshold-network/fix-keep-registry-resolve-2
Use deployer as a fallback to call approveOperatorContract For ropsten we expect that approveOperatorContract will be called by the account that is defined as keepRegistryKeeper in the hardhat config, but for hardhat local network and for usage in external project it's just fine to assume the deployer will be used as a fallback, so the external project doesn't have to define keepRegistryKeeper. This is a continuation of #92
2 parents 9176943 + 61e043f commit 9f41818

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy/08_configure_keep_registry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { DeployFunction } from "hardhat-deploy/types"
33

44
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
55
const { getNamedAccounts, deployments } = hre
6-
const { keepRegistryKeeper } = await getNamedAccounts()
6+
const { keepRegistryKeeper, deployer } = await getNamedAccounts()
77
const { execute, log } = deployments
88

99
const TokenStaking = await deployments.get("TokenStaking")
1010

1111
await execute(
1212
"KeepRegistry",
13-
{ from: keepRegistryKeeper },
13+
{ from: keepRegistryKeeper || deployer },
1414
"approveOperatorContract",
1515
TokenStaking.address
1616
)

0 commit comments

Comments
 (0)