@bsv/sdk 1.2.19 → 1.2.20
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/cjs/package.json +1 -1
- package/dist/cjs/src/transaction/Transaction.js +1 -1
- package/dist/cjs/src/transaction/Transaction.js.map +1 -1
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/esm/src/transaction/Transaction.js +1 -1
- package/dist/esm/src/transaction/Transaction.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/umd/bundle.js +1 -1
- package/package.json +1 -1
- package/src/transaction/Transaction.ts +1 -1
package/package.json
CHANGED
|
@@ -439,7 +439,7 @@ export default class Transaction {
|
|
|
439
439
|
this.cachedHash = undefined
|
|
440
440
|
if (!output.change) {
|
|
441
441
|
if (typeof output.satoshis === 'undefined') throw new Error('either satoshis must be defined or change must be set to true')
|
|
442
|
-
if (output.satoshis
|
|
442
|
+
if (output.satoshis < 0) throw new Error('satoshis must be a positive integer or zero')
|
|
443
443
|
}
|
|
444
444
|
if (!output.lockingScript) throw new Error('lockingScript must be defined')
|
|
445
445
|
this.outputs.push(output)
|