From a0fc01f416a306de2c81e9df70e2e50b9e1236a0 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 | 5 +++++ app/scripts/directives/walletDecryptDrtv.html | 18 ++++++++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/app/scripts/controllers/decryptWalletCtrl.js b/app/scripts/controllers/decryptWalletCtrl.js index 767be3198d..b79b8ef770 100644 --- a/app/scripts/controllers/decryptWalletCtrl.js +++ b/app/scripts/controllers/decryptWalletCtrl.js @@ -31,6 +31,7 @@ var decryptWalletCtrl = function($scope, $sce, walletService) { hwSocialPath: "m/44'/1128'/0'/0", // first address: m/44'/1128'/0'/0/0 hwMusicoinPath: "m/44'/184'/0'/0", // first address: m/44'/184'/0'/0/0 hwYapstonePath: "m/44'/528'/0'/0", // first address: m/44'/528'/0'/0/0 + hwESNetworkPath: "m/44'/31102'/0'/0", // first address: m/44'/31102'/0'/0/0 singularDTVPath: "m/0'/0'/0'", // first address: m/0'/0'/0'/0 hwRskPath: "m/44'/137'/0'/0", // first address : m/44'/137'/0'/0/0 }; @@ -104,6 +105,8 @@ var decryptWalletCtrl = function($scope, $sce, walletService) { break; case nodes.nodeTypes.YAP: $scope.HDWallet.dPath = $scope.HDWallet.hwYapstonePath; + case nodes.nodeTypes.ESN: + $scope.HDWallet.dPath = $scope.HDWallet.hwESNetworkPath; break; default: $scope.HDWallet.dPath = $scope.HDWallet.trezorPath; @@ -142,6 +145,8 @@ var decryptWalletCtrl = function($scope, $sce, walletService) { break; case nodes.nodeTypes.YAP: $scope.HDWallet.dPath = $scope.HDWallet.hwYapstonePath; + 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 1f155c1ce6..cc216d0824 100644 --- a/app/scripts/directives/walletDecryptDrtv.html +++ b/app/scripts/directives/walletDecryptDrtv.html @@ -47,7 +47,7 @@