From c98106ef2e42d64a33a63987dac2c6d256119b00 Mon Sep 17 00:00:00 2001 From: junderw Date: Mon, 11 Sep 2023 11:25:21 -0700 Subject: [PATCH] Fix: IndexOutOfBoundsError Display impl has values in wrong order --- bitcoin/src/psbt/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/psbt/mod.rs b/bitcoin/src/psbt/mod.rs index 0dcd4b51..1b43d5e1 100644 --- a/bitcoin/src/psbt/mod.rs +++ b/bitcoin/src/psbt/mod.rs @@ -798,12 +798,12 @@ impl fmt::Display for IndexOutOfBoundsError { Inputs { ref index, ref length } => write!( f, "index {} is out-of-bounds for PSBT inputs vector length {}", - length, index + index, length ), TxInput { ref index, ref length } => write!( f, "index {} is out-of-bounds for PSBT unsigned tx input vector length {}", - length, index + index, length ), } }