Skip to content

Commit

Permalink
refactor: fix casing for WebAuthnValidationModule (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypaik authored Oct 15, 2024
1 parent 37f1fc4 commit 30cd7f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ import {IModule} from "@erc6900/reference-implementation/interfaces/IModule.sol"
import {IValidationModule} from "@erc6900/reference-implementation/interfaces/IValidationModule.sol";
import {BaseModule} from "@erc6900/reference-implementation/modules/BaseModule.sol";

/// @title Webauthn Validation
/// @title WebAuthn Validation
/// @author Alchemy
/// @dev Implementation referenced from Webauthn + Coinbase Smart Wallet developed by Base.
/// @notice This validation module enables Webauthn (secp256r1 curve) signature validation.
/// @dev Implementation referenced from WebAuthn + Coinbase Smart Wallet developed by Base.
/// @notice This validation module enables WebAuthn (secp256r1 curve) signature validation.
/// Note:
/// - Uninstallation will NOT disable all installed entity IDs of an account. It only uninstalls the
/// entity ID that is passed in. Account must remove access for each entity ID if want to disable all.
Expand All @@ -39,7 +39,7 @@ import {BaseModule} from "@erc6900/reference-implementation/modules/BaseModule.s
/// - This validation supports ERC-1271. The signature is valid if it is signed by the owner's private key.
/// - This validation supports composition that other validation can relay on entities in this validation
/// to validate partially or fully.
contract WebauthnValidationModule is IValidationModule, ReplaySafeWrapper, BaseModule {
contract WebAuthnValidationModule is IValidationModule, ReplaySafeWrapper, BaseModule {
using MessageHashUtils for bytes32;
using WebAuthn for WebAuthn.WebAuthnAuth;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import {Utils, WebAuthnInfo} from "webauthn-sol/test/Utils.sol";

import {ModularAccount} from "../../src/account/ModularAccount.sol";
import {ModularAccountBase} from "../../src/account/ModularAccountBase.sol";
import {WebauthnValidationModule} from "../../src/modules/validation/WebauthnValidationModule.sol";
import {WebAuthnValidationModule} from "../../src/modules/validation/WebAuthnValidationModule.sol";
import {AccountTestBase} from "../utils/AccountTestBase.sol";
import {CODELESS_ADDRESS} from "../utils/TestConstants.sol";

contract WebauthnValidationModuleTest is AccountTestBase {
contract WebAuthnValidationModuleTest is AccountTestBase {
using MessageHashUtils for bytes32;

WebauthnValidationModule public module;
WebAuthnValidationModule public module;
address payable public account;
uint32 public entityId = 1;
// Example key from Coinbase Smart Wallet
Expand All @@ -32,7 +32,7 @@ contract WebauthnValidationModuleTest is AccountTestBase {
uint256 internal constant _SIG_VALIDATION_FAILED = 1;

function setUp() public override {
module = new WebauthnValidationModule();
module = new WebAuthnValidationModule();
account = payable(account1);
vm.prank(address(entryPoint));
ModularAccount(account).installValidation(
Expand Down

0 comments on commit 30cd7f5

Please sign in to comment.