fixed incorrect assertion when validating maximum time between redemption
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user