diff --git a/ethereum/contracts/relayer/wormholeRelayer/WormholeRelayerSend.sol b/ethereum/contracts/relayer/wormholeRelayer/WormholeRelayerSend.sol index 102864d86..9a87ba7b2 100644 --- a/ethereum/contracts/relayer/wormholeRelayer/WormholeRelayerSend.sol +++ b/ethereum/contracts/relayer/wormholeRelayer/WormholeRelayerSend.sol @@ -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) { @@ -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, @@ -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 @@ -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) { @@ -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 { @@ -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);