From 8ab456667db7308fda82988749eb4e7c031d07b4 Mon Sep 17 00:00:00 2001 From: Diego <105765223+0xfuturistic@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:21:00 -0700 Subject: [PATCH] contracts-bedrock: use interface IL2ToL2CrossDomainMessenger for L2ToL2CrossDomainMessenger.sol --- .../contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol b/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol index b65b6aca96e2..984b7ae08b16 100644 --- a/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol +++ b/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol @@ -5,6 +5,7 @@ import { CrossL2Inbox } from "src/L2/CrossL2Inbox.sol"; import { Encoding } from "src/libraries/Encoding.sol"; import { Predeploys } from "src/libraries/Predeploys.sol"; import { ISemver } from "src/universal/ISemver.sol"; +import { IL2ToL2CrossDomainMessenger } from "src/L2/IL2ToL2CrossDomainMessenger.sol"; /// @custom:proxied /// @custom:predeploy 0x4200000000000000000000000000000000000023 @@ -12,7 +13,7 @@ import { ISemver } from "src/universal/ISemver.sol"; /// @notice The L2ToL2CrossDomainMessenger is a higher level abstraction on top of the CrossL2Inbox that provides /// features necessary for secure transfers ERC20 tokens between L2 chains. Messages sent through the /// L2ToL2CrossDomainMessenger on the source chain receive both replay protection as well as domain binding. -contract L2ToL2CrossDomainMessenger is ISemver { +contract L2ToL2CrossDomainMessenger is IL2ToL2CrossDomainMessenger, ISemver { /// @notice Storage slot for the sender of the current cross domain message. /// Equal to bytes32(uint256(keccak256("l2tol2crossdomainmessenger.sender")) - 1) bytes32 public constant CROSS_DOMAIN_MESSAGE_SENDER_SLOT =