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; } }