Skip to content

Commit

Permalink
memory to calldata for external functions in WormholeRelayerSend
Browse files Browse the repository at this point in the history
  • Loading branch information
derpy-duck committed Jun 7, 2023
1 parent 9e6fa2f commit 42fcaad
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract contract WormholeRelayerSend is WormholeRelayerBase, IWormholeRelayerSe
function sendPayloadToEvm(
uint16 targetChain,
address targetAddress,
bytes memory payload,
bytes calldata payload,
TargetNative receiverValue,
Gas gasLimit
) external payable returns (uint64 sequence) {
Expand All @@ -58,7 +58,7 @@ abstract contract WormholeRelayerSend is WormholeRelayerBase, IWormholeRelayerSe
function sendPayloadToEvm(
uint16 targetChain,
address targetAddress,
bytes memory payload,
bytes calldata payload,
TargetNative receiverValue,
Gas gasLimit,
uint16 refundChain,
Expand All @@ -82,7 +82,7 @@ abstract contract WormholeRelayerSend is WormholeRelayerBase, IWormholeRelayerSe
function sendVaasToEvm(
uint16 targetChain,
address targetAddress,
bytes memory payload,
bytes calldata payload,
TargetNative receiverValue,
Gas gasLimit,
VaaKey[] memory vaaKeys
Expand All @@ -105,10 +105,10 @@ abstract contract WormholeRelayerSend is WormholeRelayerBase, IWormholeRelayerSe
function sendVaasToEvm(
uint16 targetChain,
address targetAddress,
bytes memory payload,
bytes calldata payload,
TargetNative receiverValue,
Gas gasLimit,
VaaKey[] memory vaaKeys,
VaaKey[] calldata vaaKeys,
uint16 refundChain,
address refundAddress
) external payable returns (uint64 sequence) {
Expand Down Expand Up @@ -158,7 +158,7 @@ abstract contract WormholeRelayerSend is WormholeRelayerBase, IWormholeRelayerSe
function forwardPayloadToEvm(
uint16 targetChain,
address targetAddress,
bytes memory payload,
bytes calldata payload,
TargetNative receiverValue,
Gas gasLimit
) external payable {
Expand All @@ -182,10 +182,10 @@ abstract contract WormholeRelayerSend is WormholeRelayerBase, IWormholeRelayerSe
function forwardVaasToEvm(
uint16 targetChain,
address targetAddress,
bytes memory payload,
bytes calldata payload,
TargetNative receiverValue,
Gas gasLimit,
VaaKey[] memory vaaKeys
VaaKey[] calldata vaaKeys
) external payable {
(address deliveryProvider,) =
getOriginalOrDefaultDeliveryProvider(targetChain);
Expand Down

0 comments on commit 42fcaad

Please sign in to comment.