From ad585033d3eb6e590c52f07856ab6484289257e5 Mon Sep 17 00:00:00 2001 From: aazhou1 Date: Fri, 20 Dec 2024 22:34:30 -0800 Subject: [PATCH] debug managed signer for strategy factory --- hardhat-scripts/deploy-strategy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hardhat-scripts/deploy-strategy.ts b/hardhat-scripts/deploy-strategy.ts index e87c8cdc..9e711423 100644 --- a/hardhat-scripts/deploy-strategy.ts +++ b/hardhat-scripts/deploy-strategy.ts @@ -126,11 +126,13 @@ async function main() { managedSigner ); console.log(JSON.stringify(params)); + console.log(await managedSigner.getAddress()) // Deploy Strategy const Strategy = (await hre.ethers.getContractFactory("Strategy")).connect( - managedSigner ?? null + managedSigner ); + const strategyMeta = process.env.STRATEGY_META!; const [strategyName, strategySymbol] = strategyMeta.trim().split(",").map(x => x.trim()) console.log(`Deploying strategy with (${strategyName}, ${strategySymbol})`);