]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Merge pull request #396 from ilanolkies/patch-2
authoriancoleman <1281387+iancoleman@users.noreply.github.com>
Thu, 6 Feb 2020 03:59:34 +0000 (14:59 +1100)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2020 03:59:34 +0000 (14:59 +1100)
Add network

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

index fc467fe55188f9428dbec3d57377e430a07afc4c..102c7c5fb70435d93990799305fe0fe5e5e7f412 100644 (file)
                     || (name == "ELLA - Ellaism")
                     || (name == "ESN - Ethersocial Network")
                     || (name == "VET - VeChain")
+                    || (name == "ERE - EtherCore")
     }
 
     function networkHasSegwit() {
                 setHdCoin(194);
             },
         },
+        {
+            name: "ERE - EtherCore",
+            segwitAvailable: false,
+            onSelect: function() {
+                network = libs.bitcoin.networks.bitcoin;
+                setHdCoin(466);
+            },
+        },
         {
             name: "ESN - Ethersocial Network",
             segwitAvailable: false,
index 0e85eccf8ac96736e9fb7bcc558dcfaa56d3cc6e..62647d2663640b7bfae798ed5d3358630dc755db 100644 (file)
@@ -1635,6 +1635,13 @@ it('Allows selection of Thought', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of EtherCore', function(done) {
+    var params = {
+        selectText: "ERE - EtherCore",
+        firstAddress: "0xDeeAD0297F06dfe6c7Ad0C1D0CF5B06D6047bEEe",
+    };
+    testNetwork(done, params);
+});
 
 // BIP39 seed is set from phrase
 it('Sets the bip39 seed from the prhase', function(done) {