Fix assertion
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user