From a0602dcf93fa56f256808b5ef98b176955213eda Mon Sep 17 00:00:00 2001 From: mubarak23 Date: Tue, 20 Aug 2024 18:16:49 +0100 Subject: [PATCH] fix scarb format --- src/components/lockable/lockable.cairo | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/lockable/lockable.cairo b/src/components/lockable/lockable.cairo index f710f9a..0b958ed 100644 --- a/src/components/lockable/lockable.cairo +++ b/src/components/lockable/lockable.cairo @@ -72,10 +72,9 @@ pub mod LockableComponent { let is_valid = account_comp._is_valid_signer(get_caller_address()); assert(is_valid, Errors::UNAUTHORIZED); - + assert( - lock_until <= current_timestamp + YEAR_DAYS_SECONDS, - Errors::EXCEEDS_MAX_LOCK_TIME + lock_until <= current_timestamp + YEAR_DAYS_SECONDS, Errors::EXCEEDS_MAX_LOCK_TIME ); let (lock_status, _) = self.is_locked(); @@ -99,7 +98,7 @@ pub mod LockableComponent { ); } - fn is_locked (self: @ComponentState) -> (bool, u64) { + fn is_locked(self: @ComponentState) -> (bool, u64) { let unlock_timestamp = self.lock_until.read(); let current_time = get_block_timestamp(); if (current_time < unlock_timestamp) {