refactor call tx modal

This commit is contained in:
Javier 2016-09-20 16:21:05 -03:00
commit 1cfd4c733f
8 changed files with 90 additions and 77 deletions

View file

@ -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 || {};