From 4073cc8977f436182e49821d243b80311b317580 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 18 Aug 2016 19:30:25 -0300 Subject: [PATCH] fix export --- src/js/services/walletService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/services/walletService.js b/src/js/services/walletService.js index dd25b0c5c..a8be2b6c7 100644 --- a/src/js/services/walletService.js +++ b/src/js/services/walletService.js @@ -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);