diff --git a/test/mocks/FakeBlockchain.js b/test/mocks/FakeBlockchain.js index c6dd8ca4f..7de66350d 100644 --- a/test/mocks/FakeBlockchain.js +++ b/test/mocks/FakeBlockchain.js @@ -11,7 +11,7 @@ FakeBlockchain.prototype.getTransaction = function(txid, cb) { }; FakeBlockchain.prototype.getTransactions = function(addresses, cb) { - return cb(null, []); + cb(null, []); }; diff --git a/test/mocks/FakeWallet.js b/test/mocks/FakeWallet.js index 57aa5d2d2..a206f70ce 100644 --- a/test/mocks/FakeWallet.js +++ b/test/mocks/FakeWallet.js @@ -39,7 +39,8 @@ var FakeWallet = function() { getSubscriptions: function() { return []; }, - subscribe: function() {} + subscribe: function() {}, + getTransactions: function() {} }; this.privateKey = new FakePrivateKey(); @@ -60,6 +61,9 @@ FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, FakeWallet.prototype.sendTx = function(ntxid, cb) { cb(8); } +FakeWallet.prototype.getAddressesStr = function() { + return ['2Mw2YXxyMD7fhtPhHYY39X6BVWiBRaez5Zn']; +}; FakeWallet.prototype.set = function(balance, safeBalance, balanceByAddr) { this.balance = balance;