diff options
| author | Adam Soltys <[email protected]> | 2022-09-02 23:32:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-02 23:32:30 -0700 |
| commit | 981321e3722af3aba217aeddfba3843615085ec7 (patch) | |
| tree | d46dab617a6e8f33980275db362aa000e0447939 /lib/buildtx.js | |
| parent | 13352f9b30eed52d2e7d0970d3cbd76f401d6de0 (diff) | |
| download | coinos-server-981321e3722af3aba217aeddfba3843615085ec7.tar.gz coinos-server-981321e3722af3aba217aeddfba3843615085ec7.zip | |
es6 migration
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({ |
