From 30cd7f5962171d1ddd1b7dd06c01b9da7c3c733b Mon Sep 17 00:00:00 2001 From: Jay Paik Date: Tue, 15 Oct 2024 17:49:07 -0400 Subject: [PATCH] refactor: fix casing for WebAuthnValidationModule (#250) --- ...nValidationModule.sol => WebAuthnValidationModule.sol} | 8 ++++---- ...idationModule.t.sol => WebAuthnValidationModule.t.sol} | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) rename src/modules/validation/{WebauthnValidationModule.sol => WebAuthnValidationModule.sol} (97%) rename test/modules/{WebauthnValidationModule.t.sol => WebAuthnValidationModule.t.sol} (96%) diff --git a/src/modules/validation/WebauthnValidationModule.sol b/src/modules/validation/WebAuthnValidationModule.sol similarity index 97% rename from src/modules/validation/WebauthnValidationModule.sol rename to src/modules/validation/WebAuthnValidationModule.sol index f36cca23..fe4635a7 100644 --- a/src/modules/validation/WebauthnValidationModule.sol +++ b/src/modules/validation/WebAuthnValidationModule.sol @@ -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. @@ -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; diff --git a/test/modules/WebauthnValidationModule.t.sol b/test/modules/WebAuthnValidationModule.t.sol similarity index 96% rename from test/modules/WebauthnValidationModule.t.sol rename to test/modules/WebAuthnValidationModule.t.sol index c78d7471..006cfec4 100644 --- a/test/modules/WebauthnValidationModule.t.sol +++ b/test/modules/WebAuthnValidationModule.t.sol @@ -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 @@ -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(