Skip to content

Commit a01dd2a

Browse files
committed
fix: Update enforced options for source bridge configuration to support multiple parameters
1 parent d047c26 commit a01dd2a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

script/bridges/layerZero/IexecLayerZeroBridge.s.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ contract Configure is Script {
7272
sourceBridge.setPeer(
7373
targetParams.lzChainId, bytes32(uint256(uint160(targetParams.iexecLayerZeroBridgeAddress)))
7474
);
75-
EnforcedOptionParam[] memory enforcedOptions = new EnforcedOptionParam[](1);
75+
EnforcedOptionParam[] memory enforcedOptions = new EnforcedOptionParam[](2);
7676
bytes memory _extraOptions = OptionsBuilder.newOptions().addExecutorLzReceiveOption(70_000, 0); // 70_000 gas limit for the receiving executor and 0 for the executor's value
77-
enforcedOptions[0] = EnforcedOptionParam(targetParams.lzChainId, 2, _extraOptions);
77+
enforcedOptions[0] = EnforcedOptionParam(targetParams.lzChainId, 1, _extraOptions);
78+
enforcedOptions[1] = EnforcedOptionParam(targetParams.lzChainId, 2, _extraOptions);
7879
sourceBridge.setEnforcedOptions(enforcedOptions);
7980
// Authorize bridge in the relevant contract.
8081
if (sourceParams.approvalRequired) {

0 commit comments

Comments
 (0)