]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Merge pull request #442 from mvillalba/master
authoriancoleman <1281387+iancoleman@users.noreply.github.com>
Fri, 2 Oct 2020 01:25:17 +0000 (11:25 +1000)
committerGitHub <noreply@github.com>
Fri, 2 Oct 2020 01:25:17 +0000 (11:25 +1000)
Add Binance Smart Chain (BSC) support

src/js/index.js
tests/spec/tests.js

index b0700063c3383157604e91909420308439b967f0..dc2496358c75b8f0bc5f8f8d3b3ead32a4f589b2 100644 (file)
                     || (name == "ESN - Ethersocial Network")
                     || (name == "VET - VeChain")
                     || (name == "ERE - EtherCore")
+                    || (name == "BSC - Binance Smart Chain")
     }
 
     function networkIsRsk() {
                 setHdCoin(183);
             },
         },
+        {
+            name: "BSC - Binance Smart Chain",
+            onSelect: function() {
+                network = libs.bitcoin.networks.bitcoin;
+                setHdCoin(60);
+            },
+        },
         {
             name: "BSV - BitcoinSV",
             onSelect: function() {
index 92df64ac520f4f99087c3d5a913cae4bd9ac9646..58318db6df5d9f3f5afca9a139342362bcb1a5e6 100644 (file)
@@ -2275,6 +2275,16 @@ it('Allows selection of Scribe', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Binance Smart Chain', function(done) {
+    var params = {
+        selectText: "BSC - Binance Smart Chain",
+        phrase: "abandon abandon ability",
+        firstAddress: "0xe5815d5902Ad612d49283DEdEc02100Bd44C2772",
+        firstPubKey: "0x03e723e5b3aa7d72213f01139aa4783e1b34f74e1a04534e3fd8e29bfe2768af8a",
+        firstPrivKey: "0x8f253078b73d7498302bb78c171b23ce7a8fb511987d2b2702b731638a4a15e7",
+    };
+    testNetwork(done, params);
+});
 
 // BIP39 seed is set from phrase
 it('Sets the bip39 seed from the prhase', function(done) {