Skip to content

Commit f6da9f0

Browse files
Rahul MagantiRahulMaganti47
Rahul Maganti
authored andcommitted
WormholeTransceiver: add Relaying Info event
1 parent 36948a0 commit f6da9f0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

evm/src/Transceiver/WormholeTransceiver/WormholeTransceiver.sol

+6
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,20 @@ contract WormholeTransceiver is
188188
0,
189189
gasLimit
190190
);
191+
192+
emit RelayingInfo(uint8(RelayingType.Standard), deliveryPayment);
191193
} else if (!weIns.shouldSkipRelayerSend && isSpecialRelayingEnabled(recipientChain)) {
192194
uint64 sequence =
193195
wormhole.publishMessage(0, encodedTransceiverPayload, consistencyLevel);
194196
specialRelayer.requestDelivery{value: deliveryPayment}(
195197
getNttManagerToken(), recipientChain, 0, sequence
196198
);
199+
200+
emit RelayingInfo(uint8(RelayingType.Special), deliveryPayment);
197201
} else {
198202
wormhole.publishMessage(0, encodedTransceiverPayload, consistencyLevel);
203+
204+
emit RelayingInfo(uint8(RelayingType.Manual), deliveryPayment);
199205
}
200206

201207
emit SendTransceiverMessage(recipientChain, transceiverMessage);

0 commit comments

Comments
 (0)