From 20cfbcbb7a36768174d6500b9ee5375a869263ee Mon Sep 17 00:00:00 2001 From: Oba Date: Wed, 20 Nov 2024 11:29:15 +0100 Subject: [PATCH] remove messaging --- src/CairoLib.sol | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/CairoLib.sol b/src/CairoLib.sol index 684d138..ae5a8db 100644 --- a/src/CairoLib.sol +++ b/src/CairoLib.sol @@ -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; @@ -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: /**