From 5eb4fca5a9317c0d65f1813f19eb62481fe9779f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Wed, 23 Feb 2022 18:56:57 +0000 Subject: [PATCH] fix: send coins function arguments --- bin/lamassu-send-coins | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lamassu-send-coins b/bin/lamassu-send-coins index b8869d9a..649e4fa2 100755 --- a/bin/lamassu-send-coins +++ b/bin/lamassu-send-coins @@ -10,7 +10,7 @@ const ticker = require('../lib/ticker') const [toAddress, cryptoValue, cryptoCode] = process.argv.slice(2) -function computeCrypto(cryptoCode, value) { +function computeCrypto (cryptoCode, value) { try { const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode) const unitScale = cryptoRec.unitScale @@ -75,7 +75,7 @@ settingsLoader.loadLatest() } console.log('Sending...') - return wallet.sendCoins(settings, toAddress, cryptoAtoms, cryptoCode) + return wallet.sendCoins(settings, { toAddress, cryptoAtoms, cryptoCode }) .then(() => { console.log('Success.') process.exit(0)