Skip to content

Commit 3674c17

Browse files
committed
pset: fix remove_output
1 parent 5d80b94 commit 3674c17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pset/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl PartiallySignedTransaction {
178178
/// Remove the output at `index` and return it if any, otherwise returns None
179179
/// This also updates the pset global output count
180180
pub fn remove_output(&mut self, index: usize) -> Option<Output> {
181-
if self.inputs.get(index).is_some() {
181+
if self.outputs.get(index).is_some() {
182182
self.global.tx_data.output_count -= 1;
183183
return Some(self.outputs.remove(index));
184184
}

0 commit comments

Comments
 (0)