From ad59508d7c4ecb487182d0d3306f01ffb4e48fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Suat=20=C3=96zg=C3=BCr?= Date: Wed, 12 Jun 2019 11:47:01 +0200 Subject: use dummyNetwork for stellar --- src/js/index.js | 2 +- src/js/stellar-util.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/js') diff --git a/src/js/index.js b/src/js/index.js index 3aa78e0..64075d3 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -2694,7 +2694,7 @@ { name: "XLM - Stellar", onSelect: function() { - network = ''; // doesn't apply, using stellar-lib + network = stellarUtil.dummyNetwork; setHdCoin(148); }, }, diff --git a/src/js/stellar-util.js b/src/js/stellar-util.js index a7032df..8722fbf 100644 --- a/src/js/stellar-util.js +++ b/src/js/stellar-util.js @@ -42503,7 +42503,14 @@ window.stellarUtil = { getKeypair: function (path, seed) { const result = edHd.derivePath(path, seed); return StellarBase.Keypair.fromRawEd25519Seed(result.key); - } + }, + dummyNetwork: { + bip32: {public: 0, private: 0}, + messagePrefix: '', + pubKeyHash: 0, + scriptHash: 0, + wif: 0, + }, } },{"ed25519-hd-key":84,"stellar-base":412}]},{},[445]); -- cgit v1.2.3