Skip to content

Commit

Permalink
fix: rfq details (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-tbd authored Jul 19, 2024
1 parent 9924c07 commit d98480b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/features/payment/payment_details_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ class PaymentDetailsPage extends HookConsumerWidget {
updatedPaymentState.selectedPayoutKind ?? '',
updatedPaymentState.payinDetails,
updatedPaymentState.payoutDetails,
claims: updatedPaymentState.paymentDetailsState?.credentialsJwt,
);

if (context.mounted && rfq.value != null) {
Expand Down
5 changes: 4 additions & 1 deletion lib/features/payment/payment_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ class PaymentState {
return null;
case TransactionType.send:
// TODO(ethan-tbd): remove hardcoded map
return {'lnAddress': paymentDetailsState?.paymentName ?? ''};
return {
'lnAddress':
paymentDetailsState?.moneyAddresses?.firstOrNull?.urn ?? '',
};
case TransactionType.withdraw:
return paymentDetailsState?.formData;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/features/tbdex/tbdex_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class TbdexService {
await Future.delayed(const Duration(milliseconds: 500));

try {
await TbdexHttpClient.createExchange(rfq, replyTo: rfq.metadata.from);
await TbdexHttpClient.createExchange(rfq);
} on Exception {
rethrow;
}
Expand Down

0 comments on commit d98480b

Please sign in to comment.