Merge pull request #742 from yemel/feature/better-off-alone
Review copay features for 1-of-1
This commit is contained in:
commit
8a8614fe5b
5 changed files with 87 additions and 13 deletions
|
|
@ -2,6 +2,8 @@ var FakeWallet = function() {
|
|||
this.id = 'testID';
|
||||
this.balance = 10000;
|
||||
this.safeBalance = 1000;
|
||||
this.totalCopayers = 2;
|
||||
this.requiredCopayers = 2;
|
||||
this.balanceByAddr = {
|
||||
'1CjPR7Z5ZSyWk6WtXvSFgkptmpoi4UM9BC': 1000
|
||||
};
|
||||
|
|
@ -15,6 +17,15 @@ var FakeWallet = function() {
|
|||
};
|
||||
};
|
||||
|
||||
FakeWallet.prototype.createTx = function(toAddress, amountSatStr, comment, opts, cb) {
|
||||
var callback = cb || opts;
|
||||
callback({});
|
||||
}
|
||||
|
||||
FakeWallet.prototype.sendTx = function(ntxid, cb) {
|
||||
cb(8);
|
||||
}
|
||||
|
||||
FakeWallet.prototype.set = function(balance, safeBalance, balanceByAddr) {
|
||||
this.balance = balance;
|
||||
this.safeBalance = safeBalance;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue