mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
prepare send failure logging
This commit is contained in:
parent
b1a303ffdc
commit
4d1fde7671
4 changed files with 13 additions and 8 deletions
|
@ -28,6 +28,7 @@ import '../../../utilities/assets.dart';
|
|||
import '../../../utilities/clipboard_interface.dart';
|
||||
import '../../../utilities/constants.dart';
|
||||
import '../../../utilities/enums/fee_rate_type_enum.dart';
|
||||
import '../../../utilities/logger.dart';
|
||||
import '../../../utilities/text_styles.dart';
|
||||
import '../../../wallets/crypto_currency/crypto_currency.dart';
|
||||
import '../../../wallets/isar/providers/wallet_info_provider.dart';
|
||||
|
@ -315,7 +316,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
|||
);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (e, s) {
|
||||
Logging.instance.log("$e\n$s", level: LogLevel.Error);
|
||||
if (mounted && !wasCancelled) {
|
||||
// pop building dialog
|
||||
Navigator.of(context).pop();
|
||||
|
|
|
@ -829,7 +829,8 @@ class _SendViewState extends ConsumerState<SendView> {
|
|||
),
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (e, s) {
|
||||
Logging.instance.log("$e\n$s", level: LogLevel.Error);
|
||||
if (mounted) {
|
||||
// pop building dialog
|
||||
Navigator.of(context).pop();
|
||||
|
|
|
@ -15,12 +15,9 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
import '../../models/isar/models/isar_models.dart';
|
||||
import '../../models/send_view_auto_fill_data.dart';
|
||||
import '../address_book_views/address_book_view.dart';
|
||||
import 'confirm_transaction_view.dart';
|
||||
import 'sub_widgets/building_transaction_dialog.dart';
|
||||
import 'sub_widgets/transaction_fee_selection_sheet.dart';
|
||||
import '../../providers/providers.dart';
|
||||
import '../../providers/ui/fee_rate_type_state_provider.dart';
|
||||
import '../../providers/ui/preview_tx_button_state_provider.dart';
|
||||
|
@ -55,6 +52,10 @@ import '../../widgets/icon_widgets/x_icon.dart';
|
|||
import '../../widgets/stack_dialog.dart';
|
||||
import '../../widgets/stack_text_field.dart';
|
||||
import '../../widgets/textfield_icon_button.dart';
|
||||
import '../address_book_views/address_book_view.dart';
|
||||
import 'confirm_transaction_view.dart';
|
||||
import 'sub_widgets/building_transaction_dialog.dart';
|
||||
import 'sub_widgets/transaction_fee_selection_sheet.dart';
|
||||
|
||||
class TokenSendView extends ConsumerStatefulWidget {
|
||||
const TokenSendView({
|
||||
|
@ -529,7 +530,8 @@ class _TokenSendViewState extends ConsumerState<TokenSendView> {
|
|||
),
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
} catch (e, s) {
|
||||
Logging.instance.log("$e\n$s", level: LogLevel.Error);
|
||||
if (mounted) {
|
||||
// pop building dialog
|
||||
Navigator.of(context).pop();
|
||||
|
|
|
@ -481,7 +481,7 @@ class _DesktopSendState extends ConsumerState<DesktopSend> {
|
|||
);
|
||||
}
|
||||
} catch (e, s) {
|
||||
Logging.instance.log("Desktop send: $e\n$s", level: LogLevel.Warning);
|
||||
Logging.instance.log("Desktop send: $e\n$s", level: LogLevel.Error);
|
||||
if (mounted) {
|
||||
// pop building dialog
|
||||
Navigator.of(
|
||||
|
|
Loading…
Reference in a new issue