diff --git a/package-lock.json b/package-lock.json index 4accd48..eadbbf4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "scrypt-ord", - "version": "1.0.15", + "version": "1.0.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "scrypt-ord", - "version": "1.0.15", + "version": "1.0.16", "license": "MIT", "dependencies": { "@types/superagent": "^4.1.20", - "scrypt-ts": "^1.3.20", + "scrypt-ts": "^1.3.23", "scrypt-ts-lib": "^0.1.23" }, "devDependencies": { @@ -3756,9 +3756,9 @@ ] }, "node_modules/scrypt-ts": { - "version": "1.3.20", - "resolved": "https://registry.npmjs.org/scrypt-ts/-/scrypt-ts-1.3.20.tgz", - "integrity": "sha512-m/S16rjmFnhk9+70GPujK/mn+51TB6lOITOqKWrH9ePUaq3RP6BhCBf8FB1SEC7WILr/Vz1kMfO2bbvAyNq2ug==", + "version": "1.3.23", + "resolved": "https://registry.npmjs.org/scrypt-ts/-/scrypt-ts-1.3.23.tgz", + "integrity": "sha512-OQrehFhSFA3pFFfbeTOIF0HXDT3rMyF5uHJE4+7ygKmcAKB/205JSUKOzygA7a4bkz3S291UCnSo3QdHcjSvLw==", "dependencies": { "deep-equal": "^2.2.0", "fast-diff": "^1.2.0", diff --git a/package.json b/package.json index d9f9ccc..dae384d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scrypt-ord", - "version": "1.0.15", + "version": "1.0.16", "description": "A sCrypt office 1Sats Ordinals SDK.", "main": "dist/index.js", "types": "src/index.ts", @@ -31,7 +31,7 @@ }, "dependencies": { "@types/superagent": "^4.1.20", - "scrypt-ts": "^1.3.20", + "scrypt-ts": "^1.3.23", "scrypt-ts-lib": "^0.1.23" }, "devDependencies": { diff --git a/src/ordiProvider.ts b/src/ordiProvider.ts index c4137b9..cc985aa 100644 --- a/src/ordiProvider.ts +++ b/src/ordiProvider.ts @@ -70,7 +70,9 @@ export class OrdiProvider extends Provider { address: AddressOption, options: UtxoQueryOptions ): Promise { - return this._provider.listUnspent(address, options) + return this._provider.listUnspent(address, options).then((utxos) => { + return utxos.filter((u) => u.satoshis > 1) + }) } getBalance(