fix: Amendment-guard TokenEscrow preclaim and expand tests (#5473)

This change amendment-guards the preclaim for `TokenEscrow`, as well as expands tests to increase code coverage.
This commit is contained in:
Denis Angell
2025-06-05 14:54:45 +02:00
committed by GitHub
parent 11edaa441d
commit 58c2c82a30
8 changed files with 467 additions and 145 deletions

View File

@@ -581,7 +581,10 @@ canAdd(STAmount const& a, STAmount const& b)
return true;
}
// LCOV_EXCL_START
UNREACHABLE("STAmount::canAdd : unexpected STAmount type");
return false;
// LCOV_EXCL_STOP
}
/**
@@ -653,8 +656,10 @@ canSubtract(STAmount const& a, STAmount const& b)
return false;
return true;
}
// LCOV_EXCL_START
UNREACHABLE("STAmount::canSubtract : unexpected STAmount type");
return false;
// LCOV_EXCL_STOP
}
void