simpleledger/slpjs

slpjs.Utils.isSlpAddress throws on string which isn't an slp address

Closed this issue · 1 comments

Maybe this is intended but it is unexpected for the name. I wouldn't expect this to throw on any input, and instead just return false for anything that isn't a slp address.

Example:

slpjs.Utils.isSlpAddress('lol')

Uncaught InvalidAddressError

@jcramer any thoughts on this?