diff --git a/src/account/AccountStorage.sol b/src/account/AccountStorage.sol index 35b3eabb..e198042f 100644 --- a/src/account/AccountStorage.sol +++ b/src/account/AccountStorage.sol @@ -48,9 +48,6 @@ struct SelectorData { } struct AccountStorage { - // AccountStorageInitializable variables - uint8 initialized; - bool initializing; // Plugin metadata storage EnumerableSet.AddressSet plugins; mapping(address => PluginData) pluginData; diff --git a/test/account/UpgradeableModularAccount.t.sol b/test/account/UpgradeableModularAccount.t.sol index 6d4ebeeb..b670b336 100644 --- a/test/account/UpgradeableModularAccount.t.sol +++ b/test/account/UpgradeableModularAccount.t.sol @@ -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"; @@ -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; diff --git a/test/comparison/CompareSimpleAccount.t.sol b/test/comparison/CompareSimpleAccount.t.sol index 88512560..204526c2 100644 --- a/test/comparison/CompareSimpleAccount.t.sol +++ b/test/comparison/CompareSimpleAccount.t.sol @@ -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"; @@ -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; diff --git a/test/plugin/SingleOwnerPlugin.t.sol b/test/plugin/SingleOwnerPlugin.t.sol index 73e45648..dea5b2f9 100644 --- a/test/plugin/SingleOwnerPlugin.t.sol +++ b/test/plugin/SingleOwnerPlugin.t.sol @@ -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"; @@ -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;