Skip to content

Commit b37355a

Browse files
committed
fix: remove Debugs from CreateTxError
1 parent f6d34d7 commit b37355a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wallet/src/wallet/error.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl fmt::Display for CreateTxError {
112112
Self::Descriptor(e) => e.fmt(f),
113113
Self::Policy(e) => e.fmt(f),
114114
CreateTxError::SpendingPolicyRequired(keychain_kind) => {
115-
write!(f, "Spending policy required: {:?}", keychain_kind)
115+
write!(f, "Spending policy required: {}", keychain_kind)
116116
}
117117
CreateTxError::Version0 => {
118118
write!(f, "Invalid version `0`")
@@ -127,12 +127,12 @@ impl fmt::Display for CreateTxError {
127127
requested,
128128
required,
129129
} => {
130-
write!(f, "TxBuilder requested timelock of `{:?}`, but at least `{:?}` is required to spend from this script", required, requested)
130+
write!(f, "TxBuilder requested timelock of `{}`, but at least `{}` is required to spend from this script", requested, required)
131131
}
132132
CreateTxError::RbfSequenceCsv { sequence, csv } => {
133133
write!(
134134
f,
135-
"Cannot enable RBF with nSequence `{:?}` given a required OP_CSV of `{:?}`",
135+
"Cannot enable RBF with nSequence `{}` given a required OP_CSV of `{}`",
136136
sequence, csv
137137
)
138138
}

0 commit comments

Comments
 (0)