@pear-protocol/symmio-client 0.3.17 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1718,6 +1718,12 @@ function validateAddress(address, name) {
1718
1718
  return address;
1719
1719
  }
1720
1720
  function validateAmount(amount, name) {
1721
+ if (typeof amount !== "bigint") {
1722
+ throw new SymmioSDKError(
1723
+ `${name} must be a bigint, got ${amount === void 0 ? "undefined" : typeof amount} (${amount})`,
1724
+ "INVALID_AMOUNT"
1725
+ );
1726
+ }
1721
1727
  if (amount <= 0n) {
1722
1728
  throw new SymmioSDKError(
1723
1729
  `${name} must be a positive amount, got ${amount}`,