Skip to content

Commit

Permalink
Merge pull request #54 from DevSwayam/main
Browse files Browse the repository at this point in the history
Docs: Minor Import Fixes in MultiOwnerValidator Tutorial
  • Loading branch information
kopy-kat authored Jan 27, 2025
2 parents 1af85c9 + 589d222 commit 3f13b0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pages/modulekit/tutorial-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,10 @@ import { Test } from "forge-std/Test.sol";
import {
RhinestoneModuleKit,
ModuleKitHelpers,
ModuleKitUserOp,
AccountInstance,
UserOpData
} from "modulekit/ModuleKit.sol";
import { MODULE_TYPE_VALIDATOR } from "modulekit/external/ERC7579.sol";
import { MODULE_TYPE_VALIDATOR } from "modulekit/accounts/common/interfaces/IERC7579Module.sol";
import { MultiOwnerValidator } from "src/MultiOwnerValidator.sol";
import { ECDSA } from "solady/utils/ECDSA.sol";
Expand All @@ -251,7 +250,6 @@ Next, we will set up the test:
contract MultiOwnerValidatorTest is RhinestoneModuleKit, Test {
using ModuleKitHelpers for *;
using ModuleKitUserOp for *;
using ECDSA for bytes32;
// account and modules
Expand Down Expand Up @@ -284,7 +282,7 @@ contract MultiOwnerValidatorTest is RhinestoneModuleKit, Test {
}
```

We use the `ModuleKitHelpers` and `ModuleKitUserOp` to help with the integration testing and the `ECDSA` library to help with the signatures. We then set up the test by creating the account instance, validator and owners. During `setUp`, we create the account instance, owners and install the validator.
We use the `ModuleKitHelpers` to help with the integration testing and the `ECDSA` library to help with the signatures. We then set up the test by creating the account instance, validator and owners. During `setUp`, we create the account instance, owners and install the validator.

Next, we will test the validator:

Expand Down

0 comments on commit 3f13b0f

Please sign in to comment.