Skip to content

Commit 5e7ceae

Browse files
authored
evm: pass consistencyLevel to WormholeRelayer during send (#538)
* fix: pass consistencyLevel to WormholeRelayer * evm: fix formatting in WormholeTransceiver
1 parent 2ce277c commit 5e7ceae

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,18 @@ contract WormholeTransceiver is
206206
bytes32 refundRecipient = refundAddress;
207207
uint16 destinationChain = recipientChain;
208208

209-
wormholeRelayer.sendPayloadToEvm{value: deliveryPayment}(
209+
wormholeRelayer.sendToEvm{value: deliveryPayment}(
210210
destinationChain,
211211
fromWormholeFormat(getWormholePeer(destinationChain)),
212212
encodedTransceiverPayload,
213-
0,
213+
0, // receiverValue
214+
0, // paymentForExtraReceiverValue,
214215
gasLimit,
215216
destinationChain,
216-
fromWormholeFormat(refundRecipient)
217+
fromWormholeFormat(refundRecipient),
218+
wormholeRelayer.getDefaultDeliveryProvider(),
219+
new VaaKey[](0),
220+
consistencyLevel
217221
);
218222

219223
emit RelayingInfo(uint8(RelayingType.Standard), refundAddress, deliveryPayment);

0 commit comments

Comments
 (0)