From f18943809475cb1195d526132051412d6bc8cb54 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Wed, 25 May 2016 13:40:54 +0300 Subject: [PATCH] fix zero partial transaction bug --- lib/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins.js b/lib/plugins.js index 52c627ed..ca32265e 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -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}) }