Skip to content

Commit 06bf153

Browse files
fix: typo
1 parent 57e5845 commit 06bf153

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/HookTarget/HookTargetFirewall.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ contract HookTargetFirewall is IHookTarget, EVCUtil {
127127
);
128128

129129
/// @notice Error thrown when the caller is not authorized to perform an operation.
130-
error HTA_Unauthorized();
130+
error HTF_Unauthorized();
131131

132132
/// @notice Constructor to initialize the contract with the EVC and validator addresses.
133133
/// @param _evc The address of the EVC contract.
@@ -148,7 +148,7 @@ contract HookTargetFirewall is IHookTarget, EVCUtil {
148148
/// @notice Modifier to restrict access to only the governor of the specified vault.
149149
/// @param vault The address of the vault.
150150
modifier onlyGovernor(address vault) {
151-
if (_msgSender() != IEVault(vault).governorAdmin()) revert HTA_Unauthorized();
151+
if (_msgSender() != IEVault(vault).governorAdmin()) revert HTF_Unauthorized();
152152
_;
153153
}
154154

@@ -406,7 +406,7 @@ contract HookTargetFirewall is IHookTarget, EVCUtil {
406406
// be
407407
// already defined by the validator contract
408408
if (!isAttestationInProgress()) {
409-
revert HTA_Unauthorized();
409+
revert HTF_Unauthorized();
410410
}
411411
}
412412
} else {
@@ -421,7 +421,7 @@ contract HookTargetFirewall is IHookTarget, EVCUtil {
421421
policies[vault].isAuthenticated = true;
422422
emit AuthenticateVault(msg.sender);
423423
} else {
424-
revert HTA_Unauthorized();
424+
revert HTF_Unauthorized();
425425
}
426426
}
427427

0 commit comments

Comments
 (0)