We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
The toBytes() method of Script is returning empty array on Signet. I am using a port of BDK to typescript.
toBytes()
Script
To Reproduce
const inputs = await transaction.input() for (const index in inputs) { const input = inputs[index] const script = await input.scriptSig.toBytes() // THIS IS EMPTY input.scriptSig = script vin.push(input) } // more ... code
the inputs is an array of TxIn with the fields sequence, previousOutput, witness, but the sigScript which is of type Script is returning empty bytes.
inputs
TxIn
sequence
previousOutput
witness
sigScript
Expected behavior Get the input script as bytes or hex.
Build environment
Additional context Signet
Thanks in advance 👍
The text was updated successfully, but these errors were encountered:
if this is indeed a bug and not a misuse from my part, I offer help to fix 👍
Sorry, something went wrong.
You said you're using a port of BDK to typescript, which project is that?
No branches or pull requests
Describe the bug
The
toBytes()
method ofScript
is returning empty array on Signet.I am using a port of BDK to typescript.
To Reproduce
the
inputs
is an array ofTxIn
with the fieldssequence
,previousOutput
,witness
, but thesigScript
which is of typeScript
is returning empty bytes.Expected behavior
Get the input script as bytes or hex.
Build environment
Additional context
Signet
Thanks in advance 👍
The text was updated successfully, but these errors were encountered: