iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.45k stars 1.43k forks source link

Stale network values used when Bitcoin Cash or Simple Ledger Protocol is chosen #349

Open stalememory opened 4 years ago

stalememory commented 4 years ago

To reproduce issue:

  1. Change Coin to "LTC - Litecoin"
  2. Change Coin to "BCH - Bitcoin Cash"
    • Under Derived Addresses, if CashAddr or BitPay is selected, no addresses will be generated
    • If legacy is selected, addresses generated are based on the network values for Litecoin, which was the previously chosen coin

Should the network be reset to bitcoinjs.bitcoin.networks.bitcoin when BCH / SLP is selected?

iancoleman commented 4 years ago

Thanks for reporting this, I'll add a test and a fix for the next release.