Error: Reader(inputs/0/finalScriptSig): readBytes: Unexpected end of buffer
at Object.err (file:///home/.../node_modules/micro-packed/lib/esm/index.js:290:21)
at _Reader.err (file:///home/.../node_modules/micro-packed/lib/esm/index.js:401:21)
at _Reader.bytes (file:///home/.../node_modules/micro-packed/lib/esm/index.js:414:24)
at Object.decodeStream (file:///home/.../node_modules/micro-packed/lib/esm/index.js:1252:27)
at Object.decodeStream (file:///home/.../node_modules/micro-packed/lib/esm/index.js:652:31)
at file:///home/.../node_modules/micro-packed/lib/esm/index.js:1633:67
at file:///home/.../node_modules/micro-packed/lib/esm/index.js:277:13
at file:///home/.../node_modules/micro-packed/lib/esm/index.js:1633:21
at Object.pushObj (file:///home/.../node_modules/micro-packed/lib/esm/index.js:275:9)
at _Reader.pushObj (file:///home/.../node_modules/micro-packed/lib/esm/index.js:360:21)
Hello. I am getting this error when trying to encode a PSBT with a single output.
My code:
The error: