Skip to content

Commit

Permalink
Merge pull request #61 from sCrypt-Inc/provider
Browse files Browse the repository at this point in the history
Provider
  • Loading branch information
zhfnjust authored Jan 6, 2024
2 parents 83b9595 + 0119e11 commit fd51f17
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
4 changes: 3 additions & 1 deletion src/ordiProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export class OrdiProvider extends Provider {
address: AddressOption,
options: UtxoQueryOptions
): Promise<UTXO[]> {
return this._provider.listUnspent(address, options)
return this._provider.listUnspent(address, options).then((utxos) => {
return utxos.filter((u) => u.satoshis > 1)
})
}

getBalance(
Expand Down

0 comments on commit fd51f17

Please sign in to comment.