Closed murchandamus closed 5 years ago
indeed
I found the reason why the tests are failing. It's a legacy "feature" of the original library. It has nothing to do with the LTC params.
Basically, the problem is the method fromBase58()
can take an array of network objects, but when it does that, it just pops the last one, in this case, the litecointest
one.
We should move these 2 network objects above the bitcoin
one... I know... It's super bad. So please, also add a TODO
in the faulty method to remove array support and create a GitHub issue.
It would probably be sensible to add litecoin testnet at the same time.