Fix: IndexOutOfBoundsError Display impl has values in wrong order
This commit is contained in:
parent
26c27d9071
commit
c98106ef2e
|
@ -798,12 +798,12 @@ impl fmt::Display for IndexOutOfBoundsError {
|
||||||
Inputs { ref index, ref length } => write!(
|
Inputs { ref index, ref length } => write!(
|
||||||
f,
|
f,
|
||||||
"index {} is out-of-bounds for PSBT inputs vector length {}",
|
"index {} is out-of-bounds for PSBT inputs vector length {}",
|
||||||
length, index
|
index, length
|
||||||
),
|
),
|
||||||
TxInput { ref index, ref length } => write!(
|
TxInput { ref index, ref length } => write!(
|
||||||
f,
|
f,
|
||||||
"index {} is out-of-bounds for PSBT unsigned tx input vector length {}",
|
"index {} is out-of-bounds for PSBT unsigned tx input vector length {}",
|
||||||
length, index
|
index, length
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue