Skip to content

Commit

Permalink
fix: pass consistencyLevel to WormholeRelayer
Browse files Browse the repository at this point in the history
  • Loading branch information
0xIryna authored and nik-suri committed Dec 2, 2024
1 parent 2ce277c commit 51671d1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 51671d1

Please sign in to comment.