fix zero partial transaction bug

This commit is contained in:
Josh Harvey 2016-05-25 13:40:54 +03:00
parent ca3f5cc354
commit f189438094

View file

@ -292,7 +292,7 @@ function executeTx (session, tx, authority, cb) {
return cb(err)
}
var cryptoAtomsToSend = toSend.cryptoAtoms
if (cryptoAtomsToSend === 0) {
if (cryptoAtomsToSend.eq(0)) {
logger.debug('No cryptoAtoms to send')
return cb(null, {statusCode: 204, txId: tx.txId, txHash: null})
}