From b11b7b43ac6c8a2c033860acec97fd46dd003b9e Mon Sep 17 00:00:00 2001 From: zer0dot Date: Wed, 10 Jul 2024 22:17:58 +0800 Subject: [PATCH] chore: remove unused import, formatting --- src/account/UpgradeableModularAccount.sol | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/account/UpgradeableModularAccount.sol b/src/account/UpgradeableModularAccount.sol index 7c1180ed..92017aac 100644 --- a/src/account/UpgradeableModularAccount.sol +++ b/src/account/UpgradeableModularAccount.sol @@ -9,7 +9,6 @@ import {UUPSUpgradeable} from "@openzeppelin/contracts/proxy/utils/UUPSUpgradeab import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import {IERC1271} from "@openzeppelin/contracts/interfaces/IERC1271.sol"; import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; -import {EnumerableMap} from "@openzeppelin/contracts/utils/structs/EnumerableMap.sol"; import {FunctionReferenceLib} from "../helpers/FunctionReferenceLib.sol"; import {SparseCalldataSegmentLib} from "../helpers/SparseCalldataSegmentLib.sol"; @@ -712,10 +711,7 @@ contract UpgradeableModularAccount is // If direct calling isn't allowed OR direct calling is allowed, but the plugin is no longer installed, // revert. TBD if there's a better way to do this, e.g. deleting this storage or segmenting per // installation ID. - if ( - !_storage.directCallData[msg.sender][msg.sig].allowed - || !_storage.plugins.contains(msg.sender) - ) { + if (!_storage.directCallData[msg.sender][msg.sig].allowed || !_storage.plugins.contains(msg.sender)) { revert DirectCallDisallowed(); }