@@ -87,15 +87,15 @@ fn format_payload_details(payload: &Payload, action: &Action) -> String {
8787 format ! ( "⚡ Lightning Invoice:\n {}" , inv)
8888 }
8989 Payload :: Dispute ( id, _) => format ! ( "⚖️ Dispute ID: {}" , id) ,
90- Payload :: Order ( o) if * action == Action :: NewOrder => format ! (
90+ Payload :: Order ( o, _ ) if * action == Action :: NewOrder => format ! (
9191 "🆕 New Order: {} {} sats ({})" ,
9292 o. id. as_ref( )
9393 . map( |x| x. to_string( ) )
9494 . unwrap_or_else( || "N/A" . to_string( ) ) ,
9595 o. amount,
9696 o. fiat_code
9797 ) ,
98- Payload :: Order ( o) => {
98+ Payload :: Order ( o, _ ) => {
9999 // Pretty format order details
100100 let status_emoji = match o. status . as_ref ( ) . unwrap_or ( & Status :: Pending ) {
101101 Status :: Pending => "⏳" ,
@@ -381,7 +381,7 @@ pub async fn print_commands_results(message: &MessageKind, ctx: &Context) -> Res
381381 // Do the logic for the message response
382382 match message. action {
383383 Action :: NewOrder => {
384- if let Some ( Payload :: Order ( order) ) = message. payload . as_ref ( ) {
384+ if let Some ( Payload :: Order ( order, _ ) ) = message. payload . as_ref ( ) {
385385 if let Some ( req_id) = message. request_id {
386386 if let Err ( e) = save_order (
387387 order. clone ( ) ,
@@ -430,7 +430,7 @@ pub async fn print_commands_results(message: &MessageKind, ctx: &Context) -> Res
430430 }
431431 // this is the case where the buyer adds an invoice to a takesell order
432432 Action :: AddInvoice => {
433- if let Some ( Payload :: Order ( order) ) = & message. payload {
433+ if let Some ( Payload :: Order ( order, _ ) ) = & message. payload {
434434 handle_add_invoice_display ( order) ;
435435
436436 if let Some ( req_id) = message. request_id {
0 commit comments