Skip to content

Commit ad79b4f

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents ba46736 + 89953cf commit ad79b4f

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

lib/locator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import 'package:flutter_animate/flutter_animate.dart';
5353
import 'package:get_it/get_it.dart';
5454
import 'package:go_router/go_router.dart';
5555

56-
const bbVersion = '0.2.0-8';
56+
const bbVersion = '0.2.0-9';
5757

5858
GetIt locator = GetIt.instance;
5959

lib/receive/bloc/receive_cubit.dart

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ class ReceiveCubit extends Cubit<ReceiveState> {
247247

248248
if (state.walletBloc == null) return;
249249

250-
final (updatedWallet, err) = await _walletAddress.newAddress(
251-
state.walletBloc!.state.wallet!,
252-
);
250+
final wallet = state.walletBloc!.state.wallet!;
251+
252+
final (updatedWallet, err) = await _walletAddress.newAddress(wallet);
253253
if (err != null) {
254254
emit(
255255
state.copyWith(
@@ -287,10 +287,23 @@ class ReceiveCubit extends Cubit<ReceiveState> {
287287
emit(state.copyWith(updateAddressGap: addressGap + 1));
288288
Future.delayed(const Duration(milliseconds: 100));
289289
}
290+
if (wallet.isLiquid())
291+
emit(
292+
state.copyWith(
293+
defaultLiquidAddress: updatedWallet.lastGeneratedAddress,
294+
),
295+
);
296+
else
297+
emit(
298+
state.copyWith(
299+
defaultAddress: updatedWallet.lastGeneratedAddress,
300+
),
301+
);
290302

291303
emit(
292304
state.copyWith(
293305
defaultLiquidAddress: updatedWallet.lastGeneratedAddress,
306+
defaultAddress: updatedWallet.lastGeneratedAddress,
294307
privateLabel: '',
295308
savedDescription: '',
296309
description: '',

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: bb_mobile
22
description: Bull Bitcoin Mobile Wallet
33
publish_to: 'none'
4-
version: 0.2.0-8+15
4+
version: 0.2.0-9+16
55

66
environment:
77
sdk: ">=3.3.0 <4.0.0"

0 commit comments

Comments
 (0)