@buildonspark/spark-sdk 0.1.13 → 0.1.14

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.
package/dist/index.cjs CHANGED
@@ -20573,7 +20573,7 @@ var SparkWallet = class _SparkWallet extends import_eventemitter3.EventEmitter {
20573
20573
  if (targetAmount && targetAmount <= 0) {
20574
20574
  throw new Error("targetAmount must be positive");
20575
20575
  }
20576
- if (!Number.isSafeInteger(targetAmount)) {
20576
+ if (targetAmount && !Number.isSafeInteger(targetAmount)) {
20577
20577
  throw new ValidationError("targetAmount must be less than 2^53", {
20578
20578
  field: "targetAmount",
20579
20579
  value: targetAmount,