@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildonspark/spark-sdk",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "Apache-2.0",
@@ -110,7 +110,7 @@
110
110
  },
111
111
  "dependencies": {
112
112
  "@bufbuild/protobuf": "^2.2.5",
113
- "@buildonspark/lrc20-sdk": "0.0.41",
113
+ "@buildonspark/lrc20-sdk": "0.0.42",
114
114
  "@lightsparkdev/core": "^1.3.0",
115
115
  "@noble/curves": "^1.8.0",
116
116
  "@noble/hashes": "^1.7.1",
@@ -716,7 +716,7 @@ export class SparkWallet extends EventEmitter {
716
716
  throw new Error("targetAmount must be positive");
717
717
  }
718
718
 
719
- if (!Number.isSafeInteger(targetAmount)) {
719
+ if (targetAmount && !Number.isSafeInteger(targetAmount)) {
720
720
  throw new ValidationError("targetAmount must be less than 2^53", {
721
721
  field: "targetAmount",
722
722
  value: targetAmount,