fix tests

This commit is contained in:
Matias Alejo Garcia 2014-12-10 18:42:32 -03:00
commit 8f8eae0f05
3 changed files with 19 additions and 12 deletions

View file

@ -1498,7 +1498,8 @@ Wallet.prototype.reject = function(ntxid, cb) {
});
// TODO this callback should be triggered by sendRejected, which is trully async
return cb(null, Wallet.TX_REJECTED);
if (cb)
cb(null, Wallet.TX_REJECTED);
};
/**
@ -1521,7 +1522,6 @@ Wallet.prototype.sign = function(ntxid) {
var txp = this.txProposals.get(ntxid);
var keys = this.privateKey.getForPaths(txp.inputChainPaths);
var signaturesAdded = txp.sign(keys, this.getMyCopayerId());
if (!signaturesAdded)
return false;