multicoin-address-validator
multicoin-address-validator copied to clipboard
Bitcoin P2SH addresses incorrectly pass Litecoin address validation
If you pass a Bitcoin P2SH address into the validate function as so:
validate("32T3sEnqEjAKn8xJg6GKrnns6YXZ36TMR6", 'litecoin', 'prod');
It will return true
. Litecoin P2SH addresses start with 'M', not '3'. Validate doesn't work properly here.