From c78c015ffd25544c7da36ff5972a676803dd93b0 Mon Sep 17 00:00:00 2001 From: nkrishang <62195808+nkrishang@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:29:30 -0400 Subject: [PATCH] delete BaseRouterStorage (#16) --- src/lib/BaseRouterStorage.sol | 25 ------------------------- src/presets/BaseRouter.sol | 1 - 2 files changed, 26 deletions(-) delete mode 100644 src/lib/BaseRouterStorage.sol diff --git a/src/lib/BaseRouterStorage.sol b/src/lib/BaseRouterStorage.sol deleted file mode 100644 index ddb3a9d..0000000 --- a/src/lib/BaseRouterStorage.sol +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -/// @title BaseRouterStorage -/// @author thirdweb (https://github.com/thirdweb-dev/dynamic-contracts) -/// @notice Defined storage for the base router preset. - -library BaseRouterStorage { - - /// @custom:storage-location erc7201:base.router.storage - bytes32 public constant BASE_ROUTER_STORAGE_POSITION = keccak256(abi.encode(uint256(keccak256("base.router.storage")) - 1)); - - struct Data { - /// @dev Mapping from default extension name -> whether the extension has been removed or replaced at least once. - mapping(string => bool) isRemovedOrReplaced; - } - - /// @dev Returns access to the extension manager's storage. - function data() internal pure returns (Data storage data_) { - bytes32 position = BASE_ROUTER_STORAGE_POSITION; - assembly { - data_.slot := position - } - } -} \ No newline at end of file diff --git a/src/presets/BaseRouter.sol b/src/presets/BaseRouter.sol index 04616a6..9f68bdc 100644 --- a/src/presets/BaseRouter.sol +++ b/src/presets/BaseRouter.sol @@ -6,7 +6,6 @@ import { IRouterState } from "../interface/IRouterState.sol"; import { IRouterStateGetters } from "../interface/IRouterStateGetters.sol"; import { ExtensionManager } from "./ExtensionManager.sol"; import { DefaultExtensionSet } from "./DefaultExtensionSet.sol"; -import { BaseRouterStorage } from "../lib/BaseRouterStorage.sol"; import { StringSet } from "../lib/StringSet.sol"; /// @title BaseRouter