]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Merge pull request #441 from bytefly/master
authoriancoleman <1281387+iancoleman@users.noreply.github.com>
Sun, 18 Oct 2020 22:12:43 +0000 (09:12 +1100)
committerGitHub <noreply@github.com>
Sun, 18 Oct 2020 22:12:43 +0000 (09:12 +1100)
Add TRX coin support

1  2 
src/js/index.js
tests/spec/tests.js

diff --cc src/js/index.js
Simple merge
index 58318db6df5d9f3f5afca9a139342362bcb1a5e6,d73f17d70cc3bca854d9ba03a18e296f2555e91e..8b3b07be1c967bcf9da3e8cff5bc727673c0731f
@@@ -2275,17 -2275,18 +2275,28 @@@ it('Allows selection of Scribe', functi
      };
      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);
 +});
  
+ it('Allows selection of TRX on Tron', function(done) {
+     var params = {
+         selectText: "TRX - Tron",
+         phrase: "abandon abandon ability",
+         firstAddress: "TA891Fu7vVz595BGQpNX2MCzr7yBcxuoC7",
+         firstPubKey: "0337bbb060e6166066f7f9e59e52f67bc23a6c9d0cbc815b82b6d89112444842e7",
+         firstPrivKey: "3a8fbd0379a815764979de86a3fcda759cb62d49e784e7b2a9a03206c90cfae2",
+     };
+     testNetwork(done, params);
+ });
  // BIP39 seed is set from phrase
  it('Sets the bip39 seed from the prhase', function(done) {
      driver.findElement(By.css('.phrase'))