Skip to content

Commit 3805ca9

Browse files
committed
fix(c4-6-13): use calldata instead of memory for function parameters
Signed-off-by: Tomás Migone <[email protected]>
1 parent e0440a8 commit 3805ca9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contracts/gateway/L1GraphTokenGateway.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ contract L1GraphTokenGateway is Initializable, GraphTokenGateway, L1ArbitrumMess
285285
* @return Base ether value required to keep retryable ticket alive
286286
* @return Additional data sent to L2
287287
*/
288-
function parseOutboundData(bytes memory _data)
288+
function parseOutboundData(bytes calldata _data)
289289
private
290290
view
291291
returns (

contracts/l2/gateway/L2GraphTokenGateway.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ contract L2GraphTokenGateway is GraphTokenGateway, L2ArbitrumMessenger, Reentran
283283
* @return Sender of the tx
284284
* @return Any other data sent to L1
285285
*/
286-
function parseOutboundData(bytes memory _data) private view returns (address, bytes memory) {
286+
function parseOutboundData(bytes calldata _data) private view returns (address, bytes memory) {
287287
address from;
288288
bytes memory extraData;
289289
if (msg.sender == l2Router) {

0 commit comments

Comments
 (0)