From 19262a20b1bf0ef8eb5ea0ca49a46692d866d9d6 Mon Sep 17 00:00:00 2001 From: Stanislav Bezkorovainyi Date: Fri, 29 Nov 2024 12:39:28 +0100 Subject: [PATCH] Fix I09 (#43) --- .../transactionFilterer/GatewayTransactionFilterer.sol | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/l1-contracts/contracts/transactionFilterer/GatewayTransactionFilterer.sol b/l1-contracts/contracts/transactionFilterer/GatewayTransactionFilterer.sol index ebcb37ff8..46a7e8cd5 100644 --- a/l1-contracts/contracts/transactionFilterer/GatewayTransactionFilterer.sol +++ b/l1-contracts/contracts/transactionFilterer/GatewayTransactionFilterer.sol @@ -8,7 +8,6 @@ import {ReentrancyGuard} from "../common/ReentrancyGuard.sol"; import {AlreadyWhitelisted, InvalidSelector, NotWhitelisted, ZeroAddress} from "../common/L1ContractErrors.sol"; import {ITransactionFilterer} from "../state-transition/chain-interfaces/ITransactionFilterer.sol"; import {IBridgehub} from "../bridgehub/IBridgehub.sol"; -import {IL2Bridge} from "../bridge/interfaces/IL2Bridge.sol"; import {IAssetRouterBase} from "../bridge/asset-router/IAssetRouterBase.sol"; import {IL2AssetRouter} from "../bridge/asset-router/IL2AssetRouter.sol"; @@ -89,10 +88,7 @@ contract GatewayTransactionFilterer is ITransactionFilterer, ReentrancyGuard, Ow return _checkSTMAssetId(decodedAssetId); } - if ( - IAssetRouterBase.finalizeDeposit.selector != l2TxSelector && - IL2Bridge.finalizeDeposit.selector != l2TxSelector - ) { + if (IAssetRouterBase.finalizeDeposit.selector != l2TxSelector) { revert InvalidSelector(l2TxSelector); }