Skip to content

Commit

Permalink
chore: update decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
drunest committed Sep 10, 2024
1 parent ec0e03e commit bc783c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/auto_validator/core/utils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _wrapped_view(view, *args, **kwargs):
nonce_float = float(nonce)

current_time = time.time()
if abs(current_time - nonce_float) > settings.SIGNATURE_VALID_DURATION:
if abs(current_time - nonce_float) > int(settings.SIGNATURE_EXPIRE_DURATION):
raise AuthenticationFailed("Invalid nonce")

if not hotkey:
Expand Down

0 comments on commit bc783c0

Please sign in to comment.