Skip to content

Commit ec1d394

Browse files
committed
fix: use actual bridge if local deploy is regtest
1 parent b5d97f2 commit ec1d394

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

script/HelperConfig.s.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,13 @@ contract HelperConfig is Script {
237237

238238
function getFlyoverLocalConfig() internal returns (FlyoverConfig memory) {
239239
// Deploy mock bridge locally
240-
BridgeMock bridge = new BridgeMock();
240+
address bridge = block.chainid == 33
241+
? address(0x0000000000000000000000000000000001000006)
242+
: address(new BridgeMock());
241243

242244
return
243245
FlyoverConfig({
244-
bridge: address(bridge),
246+
bridge: bridge,
245247
minimumCollateral: vm.envOr(
246248
"MIN_COLLATERAL_LOCAL",
247249
uint256(0.05 ether)

0 commit comments

Comments
 (0)