From 145dec9b502be78e7d761b51ffb0b44595aec84d Mon Sep 17 00:00:00 2001 From: Oba Date: Tue, 10 Sep 2024 10:39:50 +0200 Subject: [PATCH] fix: use memory location sendMessageToL1 (#5) --- src/CairoLib.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CairoLib.sol b/src/CairoLib.sol index f31c174..fafa543 100644 --- a/src/CairoLib.sol +++ b/src/CairoLib.sol @@ -196,7 +196,7 @@ library CairoLib { /// @notice Performs a low-level call to send a message from the Kakarot to the Ethereum network. /// @param payload The payload of the message to send to the Ethereum contract. The same payload will need /// to be provided on L1 to consume the message. - function sendMessageToL1(bytes calldata payload) internal { + function sendMessageToL1(bytes memory payload) internal { (bool success,) = CAIRO_MESSAGING_ADDRESS.call(payload); require(success, "CairoLib: sendMessageToL1 failed"); }