Skip to content

Commit

Permalink
chore: cleanup, fix errs
Browse files Browse the repository at this point in the history
  • Loading branch information
howydev committed Apr 20, 2024
1 parent 651c0ad commit 248e43b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/account/AccountStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ struct SelectorData {
}

struct AccountStorage {
// AccountStorageInitializable variables
uint8 initialized;
bool initializing;
// Plugin metadata storage
EnumerableSet.AddressSet plugins;
mapping(address => PluginData) pluginData;
Expand Down
2 changes: 2 additions & 0 deletions test/account/UpgradeableModularAccount.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {console} from "forge-std/Test.sol";

import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {PackedUserOperation} from "@eth-infinitism/account-abstraction/interfaces/PackedUserOperation.sol";
import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";

import {PluginManagerInternals} from "../../src/account/PluginManagerInternals.sol";
import {UpgradeableModularAccount} from "../../src/account/UpgradeableModularAccount.sol";
Expand All @@ -23,6 +24,7 @@ import {AccountTestBase} from "../utils/AccountTestBase.sol";

contract UpgradeableModularAccountTest is AccountTestBase {
using ECDSA for bytes32;
using MessageHashUtils for bytes32;

TokenReceiverPlugin public tokenReceiverPlugin;

Expand Down
2 changes: 2 additions & 0 deletions test/comparison/CompareSimpleAccount.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity ^0.8.19;
import {Test} from "forge-std/Test.sol";

import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import {EntryPoint} from "@eth-infinitism/account-abstraction/core/EntryPoint.sol";
import {PackedUserOperation} from "@eth-infinitism/account-abstraction/interfaces/PackedUserOperation.sol";

Expand All @@ -14,6 +15,7 @@ import {Counter} from "../mocks/Counter.sol";

contract CompareSimpleAccountTest is Test {
using ECDSA for bytes32;
using MessageHashUtils for bytes32;

EntryPoint public entryPoint;
address payable public beneficiary;
Expand Down
2 changes: 2 additions & 0 deletions test/plugin/SingleOwnerPlugin.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity ^0.8.19;
import {EntryPoint} from "@eth-infinitism/account-abstraction/core/EntryPoint.sol";
import {PackedUserOperation} from "@eth-infinitism/account-abstraction/interfaces/PackedUserOperation.sol";
import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";

import {SingleOwnerPlugin} from "../../src/plugins/owner/SingleOwnerPlugin.sol";
import {ISingleOwnerPlugin} from "../../src/plugins/owner/ISingleOwnerPlugin.sol";
Expand All @@ -12,6 +13,7 @@ import {OptimizedTest} from "../utils/OptimizedTest.sol";

contract SingleOwnerPluginTest is OptimizedTest {
using ECDSA for bytes32;
using MessageHashUtils for bytes32;

SingleOwnerPlugin public plugin;
EntryPoint public entryPoint;
Expand Down

0 comments on commit 248e43b

Please sign in to comment.