Skip to content

Commit

Permalink
chore: remove unused import, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0dot committed Jul 11, 2024
1 parent fe5af61 commit b11b7b4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/account/UpgradeableModularAccount.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit b11b7b4

Please sign in to comment.