Skip to content

Commit

Permalink
Update to use optimized test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamegyed committed Nov 30, 2023
1 parent 4d43b58 commit 075bc7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions test/account/AccountExecHooks.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ import {Call} from "../../src/interfaces/IStandardExecutor.sol";

import {MockPlugin} from "../mocks/MockPlugin.sol";
import {MSCAFactoryFixture} from "../mocks/MSCAFactoryFixture.sol";
import {OptimizedTest} from "../utils/OptimizedTest.sol";

contract AccountExecHooksTest is Test {
contract AccountExecHooksTest is OptimizedTest {
using ECDSA for bytes32;

EntryPoint public entryPoint;
Expand Down Expand Up @@ -56,7 +57,7 @@ contract AccountExecHooksTest is Test {

function setUp() public {
entryPoint = new EntryPoint();
singleOwnerPlugin = new SingleOwnerPlugin();
singleOwnerPlugin = _deploySingleOwnerPlugin();
factory = new MSCAFactoryFixture(entryPoint, singleOwnerPlugin);

// Create an account with "this" as the owner, so we can execute along the runtime path with regular
Expand Down
5 changes: 3 additions & 2 deletions test/account/AccountPermittedCallHooks.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ import {Call} from "../../src/interfaces/IStandardExecutor.sol";

import {MockPlugin} from "../mocks/MockPlugin.sol";
import {MSCAFactoryFixture} from "../mocks/MSCAFactoryFixture.sol";
import {OptimizedTest} from "../utils/OptimizedTest.sol";

contract AccountPermittedCallHooksTest is Test {
contract AccountPermittedCallHooksTest is OptimizedTest {
using ECDSA for bytes32;

EntryPoint public entryPoint;
Expand Down Expand Up @@ -56,7 +57,7 @@ contract AccountPermittedCallHooksTest is Test {

function setUp() public {
entryPoint = new EntryPoint();
singleOwnerPlugin = new SingleOwnerPlugin();
singleOwnerPlugin = _deploySingleOwnerPlugin();
factory = new MSCAFactoryFixture(entryPoint, singleOwnerPlugin);

// Create an account with "this" as the owner, so we can execute along the runtime path with regular
Expand Down

0 comments on commit 075bc7a

Please sign in to comment.