From ee5dc67d785640265926e7981124e514d7e2a39f Mon Sep 17 00:00:00 2001 From: jayadiki <74082962+jayadiki@users.noreply.github.com> Date: Sat, 13 Jun 2026 23:03:50 +0300 Subject: [PATCH] Fix typo in error name and interface comments Renamed error Unintialized to Uninitialized in CoinbaseSmartWalletValidator (only used inside that contract). Fixed validation logi to logic and a account to an account in IAccountStateValidator. --- src/interfaces/IAccountStateValidator.sol | 4 ++-- src/validators/CoinbaseSmartWalletValidator.sol | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interfaces/IAccountStateValidator.sol b/src/interfaces/IAccountStateValidator.sol index ed9fd100..5e631fea 100644 --- a/src/interfaces/IAccountStateValidator.sol +++ b/src/interfaces/IAccountStateValidator.sol @@ -5,8 +5,8 @@ pragma solidity ^0.8.23; bytes4 constant ACCOUNT_STATE_VALIDATION_SUCCESS = 0xccd10cc8; // bytes4(keccak256("validateAccountState(address,address)")) /// @title IAccountStateValidator -/// @notice Interface for account-specific validation logi -/// @dev This interface is used to validate the state of a account after an upgrade +/// @notice Interface for account-specific validation logic +/// @dev This interface is used to validate the state of an account after an upgrade /// @author Coinbase (https://github.com/base/eip-7702-proxy) interface IAccountStateValidator { /// @notice Error thrown when the implementation provided to `validateAccountState` is not a supported implementation diff --git a/src/validators/CoinbaseSmartWalletValidator.sol b/src/validators/CoinbaseSmartWalletValidator.sol index 4bbb4916..4a83be3e 100644 --- a/src/validators/CoinbaseSmartWalletValidator.sol +++ b/src/validators/CoinbaseSmartWalletValidator.sol @@ -10,7 +10,7 @@ import {IAccountStateValidator, ACCOUNT_STATE_VALIDATION_SUCCESS} from "../inter /// @notice Validates account state against invariants specific to CoinbaseSmartWallet contract CoinbaseSmartWalletValidator is IAccountStateValidator { /// @notice Error thrown when an account's nextOwnerIndex is 0 - error Unintialized(); + error Uninitialized(); /// @notice The implementation of the CoinbaseSmartWallet this validator expects CoinbaseSmartWallet internal immutable _supportedImplementation; @@ -26,7 +26,7 @@ contract CoinbaseSmartWalletValidator is IAccountStateValidator { if (implementation != address(_supportedImplementation)) { revert InvalidImplementation(implementation); } - if (MultiOwnable(account).nextOwnerIndex() == 0) revert Unintialized(); + if (MultiOwnable(account).nextOwnerIndex() == 0) revert Uninitialized(); return ACCOUNT_STATE_VALIDATION_SUCCESS; } }