Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sdk): create outputs for minimum amount in utxo splitter #72

Merged
merged 3 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"create-psbt": "node create-psbt",
"instant-buy": "node instant-buy",
"publish-collection": "node collections",
"build-psbt": "node build-psbt"
"build-psbt": "node build-psbt",
"split-utxo": "node split-utxo"
},
"author": "",
"license": "ISC",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/utxos/UTXOManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class UTXOManager extends PSBTBuilder {

this.outputs.push({
address: destinationAddress || this.address,
value: amount
value: MINIMUM_AMOUNT_IN_SATS
})
}

Expand Down