fix cash-in-txs updating

This commit is contained in:
Josh Harvey 2017-04-25 13:29:53 +03:00
parent fc33339997
commit 6a6075c120
3 changed files with 56 additions and 21 deletions

View file

@ -44,15 +44,11 @@ function balance (settings, cryptoCode) {
}
function sendCoins (settings, toAddress, cryptoAtoms, cryptoCode) {
console.log('DEBUG40')
return fetchWallet(settings, cryptoCode)
.then(r => {
console.log('DEBUG41')
return r.wallet.sendCoins(r.account, toAddress, cryptoAtoms, cryptoCode)
.then(res => {
console.log('DEBUG42')
mem.clear(module.exports.balance)
console.log('DEBUG43: %j', res)
return res
})
})