fix export

This commit is contained in:
Matias Alejo Garcia 2016-08-18 19:30:25 -03:00
commit 4073cc8977
No known key found for this signature in database
GPG key ID: 02470DB551277AB3

View file

@ -925,15 +925,15 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim
if (wallet.credentials.derivationStrategy != 'BIP44' || !wallet.canSign())
return null;
if (wallet.mnemonic) {
if (wallet.credentials.mnemonic) {
info = {
type: encodingType.mnemonic,
data: wallet.mnemonic,
data: wallet.credentials.mnemonic,
}
} else {
info = {
type: encodingType.xpriv,
data: wallet.xPrivKey
data: wallet.credentials.xPrivKey
}
}
return info.type + '|' + info.data + '|' + wallet.credentials.network.toLowerCase() + '|' + derivationPath + '|' + (wallet.credentials.mnemonicHasPassphrase);