Skip to content

Commit

Permalink
fix: use memory location sendMessageToL1 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou authored Sep 10, 2024
1 parent f65a998 commit 145dec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CairoLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 145dec9

Please sign in to comment.