@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/sdk",
3
- "version": "1.2.19",
3
+ "version": "1.2.20",
4
4
  "type": "module",
5
5
  "description": "BSV Blockchain Software Development Kit",
6
6
  "main": "dist/cjs/mod.js",
@@ -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 <= 0) throw new Error('satoshis must be a positive integer or zero')
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)