diff options
Diffstat (limited to 'lib/buildtx.js')
| -rw-r--r-- | lib/buildtx.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/buildtx.js b/lib/buildtx.js index e6dde1d2..e65bea7d 100644 --- a/lib/buildtx.js +++ b/lib/buildtx.js @@ -1,3 +1,4 @@ +import store from "./store.js"; import { prod } from "./utils.js"; import axios from 'axios'; import bitcoin from 'bitcoinjs-lib'; @@ -53,7 +54,7 @@ export default async ({ address, amount, feeRate, replaceable, user }) => { total += value; if (!address) { address = payments[payments.length - 1].address; - change.push(address); + store.change.push(address); } psbt = psbt.addOutput({ |
