From 2707fcd6b274ee8520acdd12d274b8cf9500093f Mon Sep 17 00:00:00 2001 From: ethicnology Date: Mon, 23 Dec 2024 15:22:16 -0500 Subject: [PATCH] refactor: check of BaseWalletType --- lib/receive/bloc/receive_cubit.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/receive/bloc/receive_cubit.dart b/lib/receive/bloc/receive_cubit.dart index e44340d6..5f5a8bca 100644 --- a/lib/receive/bloc/receive_cubit.dart +++ b/lib/receive/bloc/receive_cubit.dart @@ -58,9 +58,12 @@ class ReceiveCubit extends Cubit { await isPayjoinEnabled(); await loadAddress(); + final baseType = state.walletBloc!.state.wallet!.baseWalletType; + if (state.paymentNetwork == PaymentNetwork.bitcoin && state.defaultAddress != null && - state.isPayjoin) { + state.isPayjoin && + baseType == BaseWalletType.Bitcoin) { receivePayjoin( state.walletBloc!.state.wallet!.isTestnet(), state.defaultAddress!.address,