tx introspection

This commit is contained in:
Hardhat Chad
2024-04-30 20:44:00 +00:00
parent aa27fc6f13
commit 38deb27995
7 changed files with 433 additions and 365 deletions

View File

@@ -32,10 +32,10 @@ pub fn process_update_tolerance<'a, 'info>(
// Overflow checks
if args.tolerance_liveness.gt(&(i64::MAX as u64)) {
return Err(OreError::ToleranceInvalid.into());
return Err(OreError::ToleranceOverflow.into());
}
if args.tolerance_spam.gt(&(i64::MAX as u64)) {
return Err(OreError::ToleranceInvalid.into());
return Err(OreError::ToleranceOverflow.into());
}
// Update tolerances