From c98d3aad7224f3d7bac54df066e69a3a117a4f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Tue, 22 Aug 2023 14:42:32 +0200 Subject: [PATCH] fixed broadcast issue --- src/HuffConfig.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/HuffConfig.sol b/src/HuffConfig.sol index a6f8b09..001110b 100644 --- a/src/HuffConfig.sol +++ b/src/HuffConfig.sol @@ -232,7 +232,11 @@ contract HuffConfig { /// @notice deploy the bytecode with the create instruction address deployedAddress; - if (should_broadcast) vm.broadcast(); + if (should_broadcast) { + // @notice stop current prank in order to broadcast to the network + vm.stopPrank(); + vm.broadcast(); + } assembly { let val := sload(value.slot) deployedAddress := create(val, add(concatenated, 0x20), mload(concatenated))