@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.
@@ -1716,6 +1716,12 @@ function validateAddress(address, name) {
1716
1716
  return address;
1717
1717
  }
1718
1718
  function validateAmount(amount, name) {
1719
+ if (typeof amount !== "bigint") {
1720
+ throw new SymmioSDKError(
1721
+ `${name} must be a bigint, got ${amount === void 0 ? "undefined" : typeof amount} (${amount})`,
1722
+ "INVALID_AMOUNT"
1723
+ );
1724
+ }
1719
1725
  if (amount <= 0n) {
1720
1726
  throw new SymmioSDKError(
1721
1727
  `${name} must be a positive amount, got ${amount}`,