fixed incorrect assertion when validating maximum time between redemption

This commit is contained in:
Jędrzej Stuczyński
2024-08-20 16:43:36 +01:00
parent bbf0d06583
commit eeeb4b3246
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -528,7 +528,7 @@ impl ZkNymTicketHandlerDebug {
};
assert!(
target_secs < 86400,
target_secs > 86400,
"the maximum time between redemption can't be lower than 1 day!"
);
Duration::from_secs(target_secs as u64)
+1 -1
View File
@@ -117,7 +117,7 @@ impl ZkNymTicketHandlerDebug {
};
assert!(
target_secs < 86400,
target_secs > 86400,
"the maximum time between redemption can't be lower than 1 day!"
);
Duration::from_secs(target_secs as u64)