We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d80b94 commit 3674c17Copy full SHA for 3674c17
1 file changed
src/pset/mod.rs
@@ -178,7 +178,7 @@ impl PartiallySignedTransaction {
178
/// Remove the output at `index` and return it if any, otherwise returns None
179
/// This also updates the pset global output count
180
pub fn remove_output(&mut self, index: usize) -> Option<Output> {
181
- if self.inputs.get(index).is_some() {
+ if self.outputs.get(index).is_some() {
182
self.global.tx_data.output_count -= 1;
183
return Some(self.outputs.remove(index));
184
}
0 commit comments