From f5b358ccaae0ac0d3364caa71322ce94594b5faa Mon Sep 17 00:00:00 2001 From: mocodesmo Date: Fri, 17 May 2024 15:21:53 +0530 Subject: [PATCH 1/2] receive - generate address fix --- lib/receive/bloc/receive_cubit.dart | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lib/receive/bloc/receive_cubit.dart b/lib/receive/bloc/receive_cubit.dart index d119ec7e..f6a7d582 100644 --- a/lib/receive/bloc/receive_cubit.dart +++ b/lib/receive/bloc/receive_cubit.dart @@ -247,9 +247,9 @@ class ReceiveCubit extends Cubit { if (state.walletBloc == null) return; - final (updatedWallet, err) = await _walletAddress.newAddress( - state.walletBloc!.state.wallet!, - ); + final wallet = state.walletBloc!.state.wallet!; + + final (updatedWallet, err) = await _walletAddress.newAddress(wallet); if (err != null) { emit( state.copyWith( @@ -287,10 +287,23 @@ class ReceiveCubit extends Cubit { emit(state.copyWith(updateAddressGap: addressGap + 1)); Future.delayed(const Duration(milliseconds: 100)); } + if (wallet.isLiquid()) + emit( + state.copyWith( + defaultLiquidAddress: updatedWallet.lastGeneratedAddress, + ), + ); + else + emit( + state.copyWith( + defaultAddress: updatedWallet.lastGeneratedAddress, + ), + ); emit( state.copyWith( defaultLiquidAddress: updatedWallet.lastGeneratedAddress, + defaultAddress: updatedWallet.lastGeneratedAddress, privateLabel: '', savedDescription: '', description: '', From 89953cf66f98c0fea7e8b57202e8fa1b81a68fd1 Mon Sep 17 00:00:00 2001 From: i5hi Date: Fri, 17 May 2024 15:25:43 +0530 Subject: [PATCH 2/2] Bumped to 0.2.0-9+16 --- lib/locator.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/locator.dart b/lib/locator.dart index cbc968ba..69b5627e 100644 --- a/lib/locator.dart +++ b/lib/locator.dart @@ -53,7 +53,7 @@ import 'package:flutter_animate/flutter_animate.dart'; import 'package:get_it/get_it.dart'; import 'package:go_router/go_router.dart'; -const bbVersion = '0.2.0-8'; +const bbVersion = '0.2.0-9'; GetIt locator = GetIt.instance; diff --git a/pubspec.yaml b/pubspec.yaml index b6e82d5f..494e4e0f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: bb_mobile description: Bull Bitcoin Mobile Wallet publish_to: 'none' -version: 0.2.0-8+15 +version: 0.2.0-9+16 environment: sdk: ">=3.3.0 <4.0.0"