From d1cc66d1a02b75f90fbf0c05910777c76228259a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 2 Sep 2022 15:06:43 -0700 Subject: es6 migration --- lib/buildtx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/buildtx.js') 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"); } -- cgit v1.2.3