fix zero partial transaction bug
This commit is contained in:
parent
ca3f5cc354
commit
f189438094
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ function executeTx (session, tx, authority, cb) {
|
||||||
return cb(err)
|
return cb(err)
|
||||||
}
|
}
|
||||||
var cryptoAtomsToSend = toSend.cryptoAtoms
|
var cryptoAtomsToSend = toSend.cryptoAtoms
|
||||||
if (cryptoAtomsToSend === 0) {
|
if (cryptoAtomsToSend.eq(0)) {
|
||||||
logger.debug('No cryptoAtoms to send')
|
logger.debug('No cryptoAtoms to send')
|
||||||
return cb(null, {statusCode: 204, txId: tx.txId, txHash: null})
|
return cb(null, {statusCode: 204, txId: tx.txId, txHash: null})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue