-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: modify tests to use fallback signer rather than single signer v…
…alidation
- Loading branch information
Showing
8 changed files
with
67 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
|
||
import {IEntryPoint, UpgradeableModularAccount} from "../../src/account/UpgradeableModularAccount.sol"; | ||
import {ModuleEntity, ModuleEntityLib} from "../../src/helpers/ModuleEntityLib.sol"; | ||
import {ValidationConfig, ValidationConfigLib} from "../../src/helpers/ValidationConfigLib.sol"; | ||
import {ExecutionHook} from "../../src/interfaces/IAccountLoupe.sol"; | ||
import {Call, IStandardExecutor} from "../../src/interfaces/IStandardExecutor.sol"; | ||
import {DirectCallModule} from "../mocks/modules/DirectCallModule.sol"; | ||
|
||
import {AccountTestBase} from "../utils/AccountTestBase.sol"; | ||
|
||
import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; | ||
import {LibClone} from "solady/utils/LibClone.sol"; | ||
|
||
contract ImmutableAppendTest is AccountTestBase { | ||
using ValidationConfigLib for ValidationConfig; | ||
|
||
/* -------------------------------------------------------------------------- */ | ||
/* Negatives */ | ||
/* -------------------------------------------------------------------------- */ | ||
|
||
/* -------------------------------------------------------------------------- */ | ||
/* Positives */ | ||
/* -------------------------------------------------------------------------- */ | ||
|
||
function test_success_getData() public { | ||
bytes memory expectedArgs = abi.encodePacked(owner1); | ||
|
||
assertEq(keccak256(LibClone.argsOnERC1967(address(account1))), keccak256(expectedArgs)); | ||
} | ||
|
||
/* -------------------------------------------------------------------------- */ | ||
/* Internals */ | ||
/* -------------------------------------------------------------------------- */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters