manual rebase to https://github.com/bitpay/copay/pull/3313
This commit is contained in:
parent
f633a15a2d
commit
5214074d05
7 changed files with 18 additions and 382 deletions
|
|
@ -13,7 +13,7 @@ angular.module('copayApp.services')
|
|||
root._err = function(data) {
|
||||
var msg = 'Hardware Wallet Error: ' + (data.error || data.message || 'unknown');
|
||||
$log.warn(msg);
|
||||
return msg;
|
||||
return JSON.parse(JSON.stringify(msg));
|
||||
};
|
||||
|
||||
root.getAddressPath = function(isMultisig, account) {
|
||||
|
|
|
|||
|
|
@ -198,11 +198,11 @@ angular.module('copayApp.services')
|
|||
outputs = JSON.parse(JSON.stringify(outputs));
|
||||
|
||||
$log.debug('Signing with TREZOR', inputs, outputs);
|
||||
TrezorConnect.signTx(inputs, outputs, function(result) {
|
||||
if (!data.success)
|
||||
return callback(hwWallet._err(data));
|
||||
TrezorConnect.signTx(inputs, outputs, function(res) {
|
||||
if (!res.success)
|
||||
return callback(hwWallet._err(res));
|
||||
|
||||
callback(null, result);
|
||||
callback(null, res);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue