From 7afba5297fc4ad7d3204f3441b082ddb21b8614f Mon Sep 17 00:00:00 2001 From: dkrithika Date: Sat, 29 Aug 2026 18:34:21 +0530 Subject: [PATCH] fix: broadcast mock price feed deployment --- script/PriceFeedConsumer.s.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/PriceFeedConsumer.s.sol b/script/PriceFeedConsumer.s.sol index 36ca80d..80b8569 100644 --- a/script/PriceFeedConsumer.s.sol +++ b/script/PriceFeedConsumer.s.sol @@ -15,12 +15,12 @@ contract DeployPriceFeedConsumer is Script, HelperConfig { (,,,,, address priceFeed,,,) = helperConfig.activeNetworkConfig(); + vm.startBroadcast(); + if (priceFeed == address(0)) { priceFeed = address(new MockV3Aggregator(DECIMALS, INITIAL_ANSWER)); } - vm.startBroadcast(); - new PriceFeedConsumer(priceFeed); vm.stopBroadcast();