This repository has been archived by the owner on Dec 9, 2023. It is now read-only.
Fix TransferCommand::Combine CLI command (index out of bounds error) #201
Labels
bug
Something isn't working
reporting an issue mentioned in #196:
The
TransferCommand::Combine
CLI command seems to have a bug: inpsbt.inputs[*no as usize]
can sometimes fail depending on the input outpoint vout value and the number of psbt inputs. This happens becauseno
is the vout of an outpoint, which is not the position of the outpoint in thepsbt.inputs
vector:I think a fix could be to insert the outpoint in
transitions
in its entirety instead of just its vout, but I also see other ways to fix this so I would appreciate a suggestion from @dr-orlovsky hereThe text was updated successfully, but these errors were encountered: