Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed Feb 23, 2024
1 parent b855e37 commit 7d923fa
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 22 deletions.
3 changes: 0 additions & 3 deletions examples/src/AutoSavings/AutoSavings.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { UniswapV3Integration } from "@rhinestone/modulekit/src/Integrations.sol
import { Execution } from "@rhinestone/modulekit/src/Accounts.sol";
import { ERC7579ExecutorBase, SessionKeyBase } from "@rhinestone/modulekit/src/Modules.sol";

import "forge-std/console2.sol";

contract AutoSavingToVault is ERC7579ExecutorBase, SessionKeyBase {
struct Params {
address token;
Expand Down Expand Up @@ -85,7 +83,6 @@ contract AutoSavingToVault is ERC7579ExecutorBase, SessionKeyBase {

// execute swap on account
bytes[] memory results = _execute(swap);
console2.log("swap results", results.length);
// get return data of swap, and set it as amountIn.
// this will be the actual amount that is subject to be saved
amountIn = abi.decode(results[1], (uint256));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.19;

import { ECDSA } from "solady/src/utils/ECDSA.sol";
import { ERC7579ValidatorBase } from "@rhinestone/modulekit/src/Modules.sol";
import "forge-std/console2.sol";

abstract contract ECDSAFactor is ERC7579ValidatorBase {
struct FactorConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import { ECDSAFactor } from "./ECDSAFactor.sol";
import { ExecutionLib } from "erc7579/lib/ExecutionLib.sol";
import { ModeLib } from "erc7579/lib/ModeLib.sol";

import "forge-std/console2.sol";

struct ConfigData {
address subValidator;
bytes initData;
Expand Down
2 changes: 0 additions & 2 deletions examples/test/AutoSavings/AutoSavings.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import { AutoSavingToVault } from "src/AutoSavings/AutoSavings.sol";

import { MODULE_TYPE_EXECUTOR } from "@rhinestone/modulekit/src/external/ERC7579.sol";

import "forge-std/console2.sol";

contract AutoSavingsTest is RhinestoneModuleKit, Test {
using ModuleKitHelpers for *;
using ModuleKitSCM for *;
Expand Down
1 change: 0 additions & 1 deletion examples/test/AutoSend/AutoSend.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pragma solidity ^0.8.23;

import "forge-std/Test.sol";
import "forge-std/console2.sol";
import "@rhinestone/modulekit/src/ModuleKit.sol";
import "@rhinestone/modulekit/src/Modules.sol";
import "@rhinestone/modulekit/src/Mocks.sol";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
pragma solidity ^0.8.23;

import "forge-std/Test.sol";
import "forge-std/console2.sol";
import "@rhinestone/modulekit/src/ModuleKit.sol";
import "@rhinestone/modulekit/src/Modules.sol";
import "@rhinestone/modulekit/src/Mocks.sol";

import { MultiFactor, ECDSAFactor } from "src/MFA/MultiFactor.sol";
import { MultiFactor, ECDSAFactor } from "src/MultiFactor/MultiFactor.sol";
import { SignatureCheckerLib } from "solady/src/utils/SignatureCheckerLib.sol";
import { ECDSA } from "solady/src/utils/ECDSA.sol";
import { Solarray } from "solarray/Solarray.sol";
Expand Down
1 change: 0 additions & 1 deletion examples/test/TokenRevocation/ERC20Revocation.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pragma solidity ^0.8.23;

import "forge-std/Test.sol";
import "forge-std/console2.sol";
import "@rhinestone/modulekit/src/ModuleKit.sol";
import "@rhinestone/modulekit/src/Modules.sol";
import "@rhinestone/modulekit/src/Mocks.sol";
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@rhinestone/sessionkeymanager": "workspace:*",
"@rhinestone/safe7579": "workspace:*",
"@rhinestone/modulekit": "workspace:*",
"@rhinestone/modulekit": "workspace:*",
"prettier": "^2.8.8",
"solhint": "^4.1.1"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/modulekit/src/accountFactory/MultiAccountFactory.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

import "forge-std/Base.sol";
import "./safe7579/Safe7579Factory.sol";
import "./referenceImpl/RefImplFactory.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

import "../../external/ERC7579.sol";
import { LibClone } from "solady/src/utils/LibClone.sol";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GNU AGPLv3
pragma solidity >=0.5.0;
pragma solidity >=0.8.0;

import "./MorphoTypes.sol";

Expand Down
5 changes: 0 additions & 5 deletions packages/modulekit/src/modules/ERC7579HookDestruct.sol
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,6 @@ abstract contract ERC7579HookDestruct is ERC7579HookBase {
// }
// } else if (selector == IERC7579Account.executeFromExecutor.selector) {
// uint256 offset = msgData.offset();
// console2.log("\n\n offset %s msgData.length %s", offset, msgData.length);
// console2.log("\nmsgData:");
// console2.logBytes(msgData);
// console2.log("\nmsgData cleaned:");
// console2.logBytes(msgData[36:offset]);
//
// ModeCode mode = ModeCode.wrap(bytes32(msgData[4:36]));
// CallType calltype = ModeLib.getCallType(mode);
Expand Down
3 changes: 0 additions & 3 deletions packages/modulekit/src/test/RhinestoneModuleKit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import "./utils/Vm.sol";
import "./utils/ModuleKitCache.sol";
import "./utils/Log.sol";

import "forge-std/console2.sol";

struct AccountInstance {
address account;
Auxiliary aux;
Expand Down Expand Up @@ -152,7 +150,6 @@ contract RhinestoneModuleKit is AuxiliaryFactory {
bytes memory bootstrapCalldata =
accountFactory.getBootstrapCallData(validators, executors, hook, fallBack);
address account = accountFactory.getAddress(salt, bootstrapCalldata);
console2.log("Account address: ", account);

// using MSAFactory from ERC7579 repo.
bytes memory createAccountOnFactory =
Expand Down

0 comments on commit 7d923fa

Please sign in to comment.