trezor WIP

This commit is contained in:
Matias Alejo Garcia 2015-09-28 10:26:57 -03:00
parent 9ce342bba7
commit 4c9385f78b
2 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,7 @@ console.log('[profileService.js.239:walletClient:]',walletClient); //TODO
root._seedWallet(opts, function(err, walletClient) {
if (err) return cb(err);
walletClient.joinWallet(opts.secret, opts.myName || 'me', function(err) {
walletClient.joinWallet(opts.secret, opts.myName || 'me', {}, function(err) {
if (err) return bwsError.cb(err, gettext('Could not join wallet'), cb);
root.profile.credentials.push(JSON.parse(walletClient.export()));

View File

@ -72,6 +72,7 @@ angular.module('copayApp.services')
var pathArr = i.path.split('/');
console.log('[trezor.js.72:pathArr:]',pathArr); //TODO
var n = [44 | 0x80000000, 0 | 0x80000000, account | 0x80000000, parseInt(pathArr[1]) , parseInt(pathArr[2])];
console.log('[trezor.js.74]', n); //TODO
return {
address_n: n,
prev_index: i.vout,