The fromMultibase() utility was throwing a Syntax Error on plain string inputs, when it should instead have been returning undefined. The line this was coming from, codec.decode(), has now been warpped in a try-catch block in order to return undefined on this error, as is the expected behaviour.
Tasks
[x] Add a catch handler on codec.decode() for Syntax Errors
Description
The
fromMultibase()
utility was throwing a Syntax Error on plain string inputs, when it should instead have been returningundefined
. The line this was coming from,codec.decode()
, has now been warpped in a try-catch block in order to return undefined on this error, as is the expected behaviour.Tasks
codec.decode()
for Syntax ErrorsFinal checklist