From f14c3a7f75f4483e83da5a6dfd2dc0cb3624133a Mon Sep 17 00:00:00 2001 From: jp1ac4 <121959000+jp1ac4@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:59:16 +0000 Subject: [PATCH] spend: fix typo in enum variant --- src/spend.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spend.rs b/src/spend.rs index 0118ef0b..dc7e543c 100644 --- a/src/spend.rs +++ b/src/spend.rs @@ -543,7 +543,7 @@ pub enum SpendTxFees { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)] pub enum CreateSpendWarning { ChangeAddedToFee(u64), - AddtionalFeeForAncestors(u64), + AdditionalFeeForAncestors(u64), } impl fmt::Display for CreateSpendWarning { @@ -555,7 +555,7 @@ impl fmt::Display for CreateSpendWarning { amt, if *amt > 1 {"s"} else {""}, ), - CreateSpendWarning::AddtionalFeeForAncestors(amt) => write!( + CreateSpendWarning::AdditionalFeeForAncestors(amt) => write!( f, "An additional fee of {} sat{} has been added to pay for ancestors at the target feerate.", amt, @@ -737,7 +737,7 @@ pub fn create_spend( } if fee_for_ancestors.to_sat() > 0 { - warnings.push(CreateSpendWarning::AddtionalFeeForAncestors( + warnings.push(CreateSpendWarning::AdditionalFeeForAncestors( fee_for_ancestors.to_sat(), )); }