Closed murchandamus closed 4 years ago
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.
fromBase58()
litecointest
Originally posted by @argjv in https://github.com/BitGo/bitgo-utxo-lib/pull/35#issuecomment-483931556
Instead it should be picking the correct network by some sort of identifier.
@Xekyo @argjv
to my understanding, we pick the last correct network object:
https://github.com/BitGo/bitgo-utxo-lib/blob/1da46b908f5be59dd0c84f88770d6ad0c59f189f/src/hdnode.js#L67-L72
Looks fine to me
Originally posted by @argjv in https://github.com/BitGo/bitgo-utxo-lib/pull/35#issuecomment-483931556
Instead it should be picking the correct network by some sort of identifier.