@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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/spark-wallet.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buildonspark/spark-sdk",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
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",
|
package/src/spark-wallet.ts
CHANGED
|
@@ -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,
|