Skip to content

Commit d1453ce

Browse files
committed
Merge rust-bitcoin#5018: chore(psbt): fix typos
01f95e0 chore(psbt): fix typos (BonyHanter83) Pull request description: Fix some `a/an` issues. ACKs for top commit: tcharding: ACK 01f95e0 apoelstra: ACK 01f95e0; successfully ran local tests Tree-SHA512: 1d7564f4fc247108887883ca11259a0cdda4d6bc52b9af6640729d270675951e9508e4b80d1e6e23c89244e76512638a15ebd4f7ad4d93dcc2d2d5654b11d7b2
2 parents ebc5ec4 + 01f95e0 commit d1453ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bitcoin/src/psbt/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ pub enum SignError {
10571057
MissingWitnessScript,
10581058
/// Signing algorithm and key type does not match.
10591059
MismatchedAlgoKey,
1060-
/// Attempted to ECDSA sign an non-ECDSA input.
1060+
/// Attempted to ECDSA sign a non-ECDSA input.
10611061
NotEcdsa,
10621062
/// The `scriptPubkey` is not a P2WPKH script.
10631063
NotWpkh,
@@ -1093,7 +1093,7 @@ impl fmt::Display for SignError {
10931093
MissingSpendUtxo => write!(f, "missing spend utxo in PSBT"),
10941094
MissingWitnessScript => write!(f, "missing witness script"),
10951095
MismatchedAlgoKey => write!(f, "signing algorithm and key type does not match"),
1096-
NotEcdsa => write!(f, "attempted to ECDSA sign an non-ECDSA input"),
1096+
NotEcdsa => write!(f, "attempted to ECDSA sign a non-ECDSA input"),
10971097
NotWpkh => write!(f, "the scriptPubkey is not a P2WPKH script"),
10981098
SegwitV0Sighash(ref e) => write_err!(f, "SegWit v0 sighash"; e),
10991099
P2wpkhSighash(ref e) => write_err!(f, "p2wpkh sighash"; e),
@@ -2247,7 +2247,7 @@ mod tests {
22472247
let rtt = hex_psbt(&unserialized.serialize_hex()).unwrap();
22482248
assert_eq!(rtt, unserialized);
22492249

2250-
// Now add an ripemd160 with incorrect preimage
2250+
// Now add a ripemd160 with incorrect preimage
22512251
let mut ripemd160_preimages = BTreeMap::new();
22522252
ripemd160_preimages.insert(ripemd160::Hash::hash(&[17u8]), vec![18u8]);
22532253
unserialized.inputs[0].ripemd160_preimages = ripemd160_preimages;

0 commit comments

Comments
 (0)