verifyAmount method

BigInt verifyAmount (BigInt amount)

Implementation

BigInt verifyAmount(BigInt amount) {
  assert(
      amount > BigInt.from(0), 'Invalid amount: ' + amount.toRadixString(10));
  return amount;
}