diff --git a/script/SendFromArbitrumToEthereum.s.sol b/script/SendFromArbitrumToEthereum.s.sol index 5da49e3e..92daa76b 100644 --- a/script/SendFromArbitrumToEthereum.s.sol +++ b/script/SendFromArbitrumToEthereum.s.sol @@ -52,7 +52,7 @@ contract SendTokensFromArbitrumToEthereum is Script { // Get the fee for the transfer MessagingFee memory fee = iexecLayerZeroBridge.quoteSend(sendParam, false); console.log("Fee amount: ", fee.nativeFee); - + vm.startBroadcast(); // Execute the cross-chain transfer iexecLayerZeroBridge.send{value: fee.nativeFee}(sendParam, fee, msg.sender); diff --git a/script/bridges/layerZero/IexecLayerZeroBridge.s.sol b/script/bridges/layerZero/IexecLayerZeroBridge.s.sol index d6541999..769d3c86 100644 --- a/script/bridges/layerZero/IexecLayerZeroBridge.s.sol +++ b/script/bridges/layerZero/IexecLayerZeroBridge.s.sol @@ -72,9 +72,10 @@ contract Configure is Script { sourceBridge.setPeer( targetParams.lzChainId, bytes32(uint256(uint160(targetParams.iexecLayerZeroBridgeAddress))) ); - EnforcedOptionParam[] memory enforcedOptions = new EnforcedOptionParam[](1); + EnforcedOptionParam[] memory enforcedOptions = new EnforcedOptionParam[](2); bytes memory _extraOptions = OptionsBuilder.newOptions().addExecutorLzReceiveOption(70_000, 0); // 70_000 gas limit for the receiving executor and 0 for the executor's value - enforcedOptions[0] = EnforcedOptionParam(targetParams.lzChainId, 2, _extraOptions); + enforcedOptions[0] = EnforcedOptionParam(targetParams.lzChainId, 1, _extraOptions); // lzReceive + enforcedOptions[1] = EnforcedOptionParam(targetParams.lzChainId, 2, _extraOptions); // lzCompose sourceBridge.setEnforcedOptions(enforcedOptions); // Authorize bridge in the relevant contract. if (sourceParams.approvalRequired) {