Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
fmt

fix path

typo
  • Loading branch information
zeroknots committed Feb 22, 2024
1 parent 1b17d91 commit 83d2673
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions examples/src/OwnableValidator/OwnableValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ contract OwnableValidator is ERC7579ValidatorBase {
returns (bytes4)
{
address owner = owners[msg.sender];
address recover = ECDSA.recover(hash, data);
bool valid = SignatureCheckerLib.isValidSignatureNow(owner, hash, data);
return SignatureCheckerLib.isValidSignatureNow(owner, hash, data)
return SignatureCheckerLib.isValidSignatureNowCalldata(owner, hash, data)
? EIP1271_SUCCESS
: EIP1271_FAILED;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/src/WebauthnValidator/WebauthnValidator.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.19;

import { WebAuthnLib } from "./utils/WebAuthnLib.sol";
import { WebAuthnLib } from "./utils/WebAuthNLib.sol";
import { ERC7579ValidatorBase } from "@rhinestone/modulekit/src/Modules.sol";
import {
PackedUserOperation, UserOperationLib
Expand Down
12 changes: 6 additions & 6 deletions examples/test/coldstorage/ColdStorage.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ import { Solarray } from "solarray/Solarray.sol";
import { ECDSA } from "solady/src/utils/ECDSA.sol";

import { IERC7579Account, Execution } from "@rhinestone/modulekit/src/Accounts.sol";
import { FlashloanCallback } from "src/coldstorage-subaccount/FlashloanCallback.sol";
import { FlashloanLender } from "src/coldstorage-subaccount/FlashloanLender.sol";
import { ColdStorageHook } from "src/coldstorage-subaccount/ColdStorageHook.sol";
import { ColdStorageExecutor } from "src/coldstorage-subaccount/ColdStorageExecutor.sol";
import { FlashloanCallback } from "src/ColdStorage-SubAccount/FlashloanCallback.sol";
import { FlashloanLender } from "src/ColdStorage-SubAccount/FlashloanLender.sol";
import { ColdStorageHook } from "src/ColdStorage-SubAccount/ColdStorageHook.sol";
import { ColdStorageExecutor } from "src/ColdStorage-SubAccount/ColdStorageExecutor.sol";
import { OwnableValidator } from "src/OwnableValidator/OwnableValidator.sol";

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

import "src/coldstorage-subaccount/interfaces/Flashloan.sol";
import "src/ColdStorage-SubAccount/interfaces/Flashloan.sol";
import "erc7579/lib/ExecutionLib.sol";

contract ColdStorageTest is RhinestoneModuleKit, Test {
Expand Down Expand Up @@ -310,6 +310,6 @@ contract ColdStorageTest is RhinestoneModuleKit, Test {
_execWithdraw(action);

uint256 newBalance = target.balance;
assertTrue(newBalance > prevBalance );
assertTrue(newBalance > prevBalance);
}
}

0 comments on commit 83d2673

Please sign in to comment.