isLamports function

bool isLamports(
  1. BigInt putativeLamports
)

Returns true if putativeLamports is within the valid range for Lamports (0 to 2^64-1).

Implementation

bool isLamports(BigInt putativeLamports) {
  return putativeLamports >= BigInt.zero && putativeLamports <= _maxU64Value;
}