fix tests

This commit is contained in:
Manuel Araoz 2014-07-04 12:51:27 -03:00
commit a30b8d81bb
5 changed files with 43 additions and 16 deletions

View file

@ -697,8 +697,7 @@ Wallet.prototype.createTxSync = function(toAddress, amountSatStr, comment, utxos
opts = opts || {};
var amountSat = bignum(amountSatStr);
preconditions.checkArgument(new Address(toAddress).network().name === this.networkName);
preconditions.checkArgument(new Address(toAddress).network().name === this.getNetworkName());
if (!pkr.isComplete()) {
throw new Error('publicKeyRing is not complete');
}