Skip to content

Commit eb371cc

Browse files
fixup! add the bolt12 invoice to the PaymentSend event
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent 9d92b60 commit eb371cc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lightning/src/offers/invoice_request.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ use crate::onion_message::dns_resolution::HumanReadableName;
8686
use crate::types::features::InvoiceRequestFeatures;
8787
use crate::types::payment::PaymentHash;
8888
use crate::util::ser::{
89-
CursorReadable, HighZeroBytesDroppedBigSize, LengthLimitedRead, LengthReadable, Readable,
89+
CursorReadable, HighZeroBytesDroppedBigSize, LengthRead, LengthReadable, Readable,
9090
WithoutLength, Writeable, Writer,
9191
};
9292
use crate::util::string::{PrintableString, UntrustedString};
@@ -1126,8 +1126,10 @@ impl Writeable for InvoiceRequestContents {
11261126
}
11271127

11281128
impl LengthReadable for InvoiceRequest {
1129-
fn read_from_fixed_length_buffer<R: LengthLimitedRead>(r: &mut R) -> Result<Self, DecodeError> {
1130-
let bytes: WithoutLength<Vec<u8>> = LengthReadable::read_from_fixed_length_buffer(r)?;
1129+
fn read_from_fixed_length_buffer<R: LengthLimitedRead>(
1130+
reader: &mut R,
1131+
) -> Result<Self, DecodeError> {
1132+
let bytes: WithoutLength<Vec<u8>> = LengthReadable::read_from_fixed_length_buffer(reader)?;
11311133
Self::try_from(bytes.0).map_err(|_| DecodeError::InvalidValue)
11321134
}
11331135
}

0 commit comments

Comments
 (0)