Skip to content

Commit

Permalink
Change in recieve wallet does not change selected network. Allows for…
Browse files Browse the repository at this point in the history
… all inter network swaps
  • Loading branch information
i5hi committed Apr 11, 2024
1 parent 07fd39b commit 5e01873
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/receive/receive_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,13 @@ class ReceiveWalletsDropDown extends StatelessWidget {
onChanged: (value) {
final wallet = value.state.wallet!;
if (wallet.baseWalletType == BaseWalletType.Bitcoin) {
context.read<ReceiveCubit>().updateWalletType(ReceivePaymentNetwork.bitcoin);
// If selectedNetwork is Liquid, warn that will be an expensive chain to chain swap

// context.read<ReceiveCubit>().updateWalletType(ReceivePaymentNetwork.bitcoin);
} else if (wallet.baseWalletType == BaseWalletType.Liquid) {
context.read<ReceiveCubit>().updateWalletType(ReceivePaymentNetwork.liquid);
// If selectedNetwork is Bicoin, warn that will be an expensive chain to chain swap

// context.read<ReceiveCubit>().updateWalletType(ReceivePaymentNetwork.liquid);
}
context.read<ReceiveCubit>().updateWalletBloc(value);
},
Expand Down

0 comments on commit 5e01873

Please sign in to comment.