From 981321e3722af3aba217aeddfba3843615085ec7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 2 Sep 2022 23:32:30 -0700 Subject: es6 migration --- lib/buildtx.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/buildtx.js') 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({ -- cgit v1.2.3