@@ -8,23 +8,21 @@ pragma solidity ^0.8.0;
8
8
interface IWormholeReceiver {
9
9
/**
10
10
* @notice When a `send` is performed with this contract as the target, this function will be
11
- * invoked.
12
- * To get the address that will invoke this contract, call the `getDeliveryAddress()` function
13
- * on this chain (the target chain)'s WormholeRelayer contract
11
+ * invoked by the WormholeRelayer contract
14
12
*
15
- * NOTE: This function should be restricted such that only `getDeliveryAddress()` can call it.
13
+ * NOTE: This function should be restricted such that only the Wormhole Relayer contract can call it.
16
14
*
17
15
* We also recommend that this function:
18
- * - Stores all received `deliveryData. deliveryHash`s in a mapping `(bytes32 => bool)`, and
19
- * on every call, checks that deliveryData. deliveryHash has not already been stored in the
16
+ * - Stores all received `deliveryHash`s in a mapping `(bytes32 => bool)`, and
17
+ * on every call, checks that deliveryHash has not already been stored in the
20
18
* map (This is to prevent other users maliciously trying to relay the same message)
21
- * - Checks that `deliveryData. sourceChain` and `deliveryData. sourceAddress` are indeed who
19
+ * - Checks that `sourceChain` and `sourceAddress` are indeed who
22
20
* you expect to have requested the calling of `send` or `forward` on the source chain
23
21
*
24
22
* The invocation of this function corresponding to the `send` request will have msg.value equal
25
23
* to the receiverValue specified in the send request.
26
24
*
27
- * If the invocation of this function reverts or exceeds the gas limit (`maxTransactionFee`)
25
+ * If the invocation of this function reverts or exceeds the gas limit
28
26
* specified by the send requester, this delivery will result in a `ReceiverFailure`.
29
27
*
30
28
* @param payload - an arbitrary message which was included in the delivery by the
@@ -48,4 +46,4 @@ interface IWormholeReceiver {
48
46
uint16 sourceChain ,
49
47
bytes32 deliveryHash
50
48
) external payable ;
51
- }
49
+ }
0 commit comments