Fix assertion

This commit is contained in:
zyc
2025-11-26 21:07:29 +08:00
parent ca7cbac320
commit 91b9f4c4c6
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -149,7 +149,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)
@@ -598,7 +598,7 @@ impl ZkNymTicketHandlerDebugV10 {
};
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)
@@ -436,7 +436,7 @@ impl ZkNymTicketHandlerDebugV4 {
};
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)
@@ -438,7 +438,7 @@ impl ZkNymTicketHandlerDebugV5 {
};
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)
@@ -458,7 +458,7 @@ impl ZkNymTicketHandlerDebugV6 {
};
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)
@@ -516,7 +516,7 @@ impl ZkNymTicketHandlerDebugV7 {
};
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)
@@ -490,7 +490,7 @@ impl ZkNymTicketHandlerDebugV8 {
};
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)
@@ -591,7 +591,7 @@ impl ZkNymTicketHandlerDebugV9 {
};
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)