From 51671d1ff85898a5fee99418bd38f48e759ff9fd Mon Sep 17 00:00:00 2001 From: 0xIryna Date: Mon, 21 Oct 2024 12:40:51 -0700 Subject: [PATCH] fix: pass consistencyLevel to WormholeRelayer --- .../WormholeTransceiver/WormholeTransceiver.sol | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol b/evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol index f245a01be..e9050555e 100644 --- a/evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol +++ b/evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol @@ -206,15 +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, - gasLimit, + encodedTransceiverPayload, + 0, // receiverValue + 0, // paymentForExtraReceiverValue, + gasLimit, destinationChain, - fromWormholeFormat(refundRecipient) - ); + fromWormholeFormat(refundRecipient), + wormholeRelayer.getDefaultDeliveryProvider(), + new VaaKey[](0), + consistencyLevel); emit RelayingInfo(uint8(RelayingType.Standard), refundAddress, deliveryPayment); } else if (!weIns.shouldSkipRelayerSend && isSpecialRelayingEnabled(recipientChain)) {