Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
saiy2k committed May 17, 2024
2 parents ba46736 + 89953cf commit ad79b4f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/locator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
19 changes: 16 additions & 3 deletions lib/receive/bloc/receive_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ class ReceiveCubit extends Cubit<ReceiveState> {

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(
Expand Down Expand Up @@ -287,10 +287,23 @@ class ReceiveCubit extends Cubit<ReceiveState> {
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: '',
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit ad79b4f

Please sign in to comment.