From 5e7ceaef9a5e7eaa13e823a67c611dc684cc0c1d Mon Sep 17 00:00:00 2001 From: 0xIryna <43921510+0xIryna@users.noreply.github.com> Date: Mon, 2 Dec 2024 15:21:22 -0800 Subject: [PATCH] evm: pass consistencyLevel to WormholeRelayer during send (#538) * fix: pass consistencyLevel to WormholeRelayer * evm: fix formatting in WormholeTransceiver --- .../WormholeTransceiver/WormholeTransceiver.sol | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol b/evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol index f245a01be..2cf3550c5 100644 --- a/evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol +++ b/evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol @@ -206,14 +206,18 @@ contract WormholeTransceiver is bytes32 refundRecipient = refundAddress; uint16 destinationChain = recipientChain; - wormholeRelayer.sendPayloadToEvm{value: deliveryPayment}( + wormholeRelayer.sendToEvm{value: deliveryPayment}( destinationChain, fromWormholeFormat(getWormholePeer(destinationChain)), encodedTransceiverPayload, - 0, + 0, // receiverValue + 0, // paymentForExtraReceiverValue, gasLimit, destinationChain, - fromWormholeFormat(refundRecipient) + fromWormholeFormat(refundRecipient), + wormholeRelayer.getDefaultDeliveryProvider(), + new VaaKey[](0), + consistencyLevel ); emit RelayingInfo(uint8(RelayingType.Standard), refundAddress, deliveryPayment);