aboutsummaryrefslogtreecommitdiffstats
path: root/lib/buildtx.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/buildtx.js')
-rw-r--r--lib/buildtx.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/buildtx.js b/lib/buildtx.js
index a696062c..e6dde1d2 100644
--- a/lib/buildtx.js
+++ b/lib/buildtx.js
@@ -28,7 +28,7 @@ export default async ({ address, amount, feeRate, replaceable, user }) => {
try {
utxos.push(...(await axios.get(`${api}/address/${addresses[i]}/utxo`)).data);
} catch (e) {
- l.error("problem fetching utxos", e.message);
+ err("problem fetching utxos", e.message);
}
}
@@ -42,7 +42,7 @@ export default async ({ address, amount, feeRate, replaceable, user }) => {
let { inputs, outputs, fee } = coinselect(utxos, targets, feeRate);
if (!inputs || !outputs) {
- l.info("utxos", amount, feeRate, utxos.map(u => u.value));
+ l("utxos", amount, feeRate, utxos.map(u => u.value));
throw new Error("Couldn't find inputs for transaction, check your balance/fee");
}