File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { DeployFunction } from "hardhat-deploy/types"
44import { ethers , upgrades } from "hardhat"
55
66const func : DeployFunction = async function ( hre : HardhatRuntimeEnvironment ) {
7- const { deployments } = hre
8- const { log } = deployments
7+ const { getNamedAccounts , deployments } = hre
8+ const { log, execute } = deployments
99
1010 const T = await deployments . get ( "T" )
1111 const VendingMachineNuCypher = await deployments . get ( "VendingMachineNuCypher" )
@@ -51,6 +51,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
5151 }
5252 )
5353
54+ // initialize implementation
55+ const { deployer } = await getNamedAccounts ( )
56+ await execute (
57+ "TokenStaking" ,
58+ { from : deployer , to : implAddress } ,
59+ "initialize"
60+ )
5461 }
5562}
5663
You can’t perform that action at this time.
0 commit comments