Closed sidhujag closed 4 years ago
@sidhujag good catch, yes we should definitely be handling that.
@junderw what do you think we should we do here?
try/catch and return undefined for scripts that fail
Do this. I'll push out a patch.
update to patched v5.1.9.
Thanks for the report.
https://github.com/bitcoinjs/bitcoinjs-lib/blob/85ee2a3c5d1cdbf111232e6eb00ce0ce3bc398a6/src/psbt.js#L123
Seems to have an issue with nonstandard outputs, is it supposed to support OP_RETURN outputs? We should be able to get all outputs even nonstandard ones.