From 4f573a7601f154d538c11f48fc39312d422c1c27 Mon Sep 17 00:00:00 2001 From: kimmyeonghun Date: Tue, 29 May 2018 19:27:48 +0900 Subject: [PATCH] TREZOR support for EtherSocial Network (ESN) --- app/scripts/controllers/decryptWalletCtrl.js | 7 +++++++ app/scripts/directives/walletDecryptDrtv.html | 18 ++++++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/app/scripts/controllers/decryptWalletCtrl.js b/app/scripts/controllers/decryptWalletCtrl.js index 83be24980c..4088da744d 100644 --- a/app/scripts/controllers/decryptWalletCtrl.js +++ b/app/scripts/controllers/decryptWalletCtrl.js @@ -35,6 +35,7 @@ var decryptWalletCtrl = function($scope, $sce, walletService) { hwRskPath: "m/44'/137'/0'/0", // first address : m/44'/137'/0'/0/0 goPath: "m/44'/6060'/0'/0", // first address: m/44'/6060'/0'/0/0 hwEOSClassicPath: "m/44'/2018'/0'/0", // first address: m/44'/2018'/0'/0/0 + hwESNetworkPath: "m/44'/31102'/0'/0", // first address: m/44'/31102'/0'/0/0 }; $scope.HDWallet.dPath = $scope.HDWallet.defaultDPath; $scope.mnemonicModel = new Modal(document.getElementById('mnemonicModel')); @@ -113,6 +114,9 @@ var decryptWalletCtrl = function($scope, $sce, walletService) { case nodes.nodeTypes.EOSC: $scope.HDWallet.dPath = $scope.HDWallet.hwEOSClassicPath; break; + case nodes.nodeTypes.ESN: + $scope.HDWallet.dPath = $scope.HDWallet.hwESNetworkPath; + break; default: $scope.HDWallet.dPath = $scope.HDWallet.trezorPath; } @@ -157,6 +161,9 @@ var decryptWalletCtrl = function($scope, $sce, walletService) { case nodes.nodeTypes.EOSC: $scope.HDWallet.dPath = $scope.HDWallet.hwEOSClassicPath; break; + case nodes.nodeTypes.ESN: + $scope.HDWallet.dPath = $scope.HDWallet.hwESNetworkPath; + break; default: $scope.HDWallet.dPath = $scope.HDWallet.defaultDPath; } diff --git a/app/scripts/directives/walletDecryptDrtv.html b/app/scripts/directives/walletDecryptDrtv.html index afb17ed5a0..4bc1575280 100644 --- a/app/scripts/directives/walletDecryptDrtv.html +++ b/app/scripts/directives/walletDecryptDrtv.html @@ -47,7 +47,7 @@