From b10622c6fe48d933d604a7ae47e725b7ffd2e93c Mon Sep 17 00:00:00 2001 From: Ayush Tiwari Date: Mon, 16 Sep 2024 21:40:18 +0530 Subject: [PATCH] fixed: removed redundant code --- packages/marketplace/contracts/ExchangeCore.sol | 4 ---- packages/marketplace/contracts/TransferManager.sol | 2 -- 2 files changed, 6 deletions(-) diff --git a/packages/marketplace/contracts/ExchangeCore.sol b/packages/marketplace/contracts/ExchangeCore.sol index 7771e293c7..a895789787 100644 --- a/packages/marketplace/contracts/ExchangeCore.sol +++ b/packages/marketplace/contracts/ExchangeCore.sol @@ -3,7 +3,6 @@ pragma solidity 0.8.23; import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; -import {Address} from "@openzeppelin/contracts/utils/Address.sol"; import {ERC165Checker} from "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import {LibAsset} from "./libraries/LibAsset.sol"; import {LibOrder} from "./libraries/LibOrder.sol"; @@ -15,9 +14,6 @@ import {IOrderValidator} from "./interfaces/IOrderValidator.sol"; /// @notice Contains the main functions for the marketplace. /// @dev This is an abstract contract that requires implementation. abstract contract ExchangeCore is Initializable, ITransferManager { - using Address for address; - using ERC165Checker for address; - /// @dev Stores left and right orders that match each other. /// Left and right are symmetrical except for fees that are taken from the left side first. struct ExchangeMatch { diff --git a/packages/marketplace/contracts/TransferManager.sol b/packages/marketplace/contracts/TransferManager.sol index 6a0b71c2aa..6b6df2b2b0 100644 --- a/packages/marketplace/contracts/TransferManager.sol +++ b/packages/marketplace/contracts/TransferManager.sol @@ -606,8 +606,6 @@ abstract contract TransferManager is Initializable, ITransferManager { } } if (quadsLength > 0) { - require(quadsLength == bundle.quads.ys.length, "quad error"); - require(quadsLength == bundle.quads.sizes.length, "quad size error"); landContract.batchTransferQuad( from, to,