Skip to content

Commit

Permalink
remove messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou committed Nov 20, 2024
1 parent a3714b3 commit 20cfbcb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/CairoLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity >=0.8.0 <0.9.0;

library CairoLib {
/// @dev The Cairo precompile contract's address.
address constant CAIRO_MESSAGE_PRECOMPILE = 0x0000000000000000000000000000000000075002;
address constant CAIRO_MULTICALL_PRECOMPILE= 0x0000000000000000000000000000000000075003;
address constant CAIRO_CALL_PRECOMPILE= 0x0000000000000000000000000000000000075004;

Expand Down Expand Up @@ -123,14 +122,6 @@ library CairoLib {
require(success, "CairoLib: multicallCairoStatic failed");
}

/// @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 memory payload) internal {
(bool success,) = CAIRO_MESSAGE_PRECOMPILE.call(payload);
require(success, "CairoLib: sendMessageToL1 failed");
}

/// @notice Converts a Cairo ByteArray to a string
/// @dev A ByteArray is represented as:
/**
Expand Down

0 comments on commit 20cfbcb

Please sign in to comment.