refactor call tx modal
This commit is contained in:
parent
64b879fcd3
commit
1cfd4c733f
8 changed files with 90 additions and 77 deletions
|
|
@ -502,6 +502,17 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
|
|||
});
|
||||
};
|
||||
|
||||
root.getTx = function(wallet, txid, cb) {
|
||||
root.getTxHistory(wallet, {}, function(err, txHistory) {
|
||||
if (err) return cb(err);
|
||||
|
||||
var tx = lodash.find(txHistory, {
|
||||
txid: txid
|
||||
});
|
||||
|
||||
return cb(null, tx);
|
||||
});
|
||||
};
|
||||
|
||||
root.getTxHistory = function(wallet, opts, cb) {
|
||||
opts = opts || {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue