We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b8b17d commit 3e17e7fCopy full SHA for 3e17e7f
lightning/src/offers/offer.rs
@@ -137,7 +137,7 @@ impl OfferBuilder {
137
/// Sets the [`Offer::amount`] as an [`Amount::Bitcoin`].
138
///
139
/// Successive calls to this method will override the previous setting.
140
- pub fn amount_msats(mut self, amount_msats: u64) -> Self {
+ pub fn amount_msats(self, amount_msats: u64) -> Self {
141
self.amount(Amount::Bitcoin { amount_msats })
142
}
143
0 commit comments