Skip to content

Commit

Permalink
evm: pass consistencyLevel to WormholeRelayer during send (#538)
Browse files Browse the repository at this point in the history
* fix: pass consistencyLevel to WormholeRelayer

* evm: fix formatting in WormholeTransceiver
  • Loading branch information
0xIryna authored Dec 2, 2024
1 parent 2ce277c commit 5e7ceae
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5e7ceae

Please sign in to comment.