From f05066adfbc33ff0968a7622da4d6353b3cae4bb Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Thu, 25 Apr 2024 13:29:04 +0545 Subject: [PATCH] feat: Update tozen data after transaction is successfull --- .../cubit/confirm_token_transaction_cubit.dart | 1 + .../view/confirm_token_transaction_page.dart | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib/dashboard/home/tab_bar/tokens/confirm_token_transaction/cubit/confirm_token_transaction_cubit.dart b/lib/dashboard/home/tab_bar/tokens/confirm_token_transaction/cubit/confirm_token_transaction_cubit.dart index b60444e85..166c235df 100644 --- a/lib/dashboard/home/tab_bar/tokens/confirm_token_transaction/cubit/confirm_token_transaction_cubit.dart +++ b/lib/dashboard/home/tab_bar/tokens/confirm_token_transaction/cubit/confirm_token_transaction_cubit.dart @@ -434,6 +434,7 @@ class ConfirmTokenTransactionCubit extends Cubit { chainRpcUrl: chainRpcUrl, rpcUrl: chainRpcUrl, ); + resetTransactionAttemptCount(); } } catch (e, s) { diff --git a/lib/dashboard/home/tab_bar/tokens/confirm_token_transaction/view/confirm_token_transaction_page.dart b/lib/dashboard/home/tab_bar/tokens/confirm_token_transaction/view/confirm_token_transaction_page.dart index cf2f30eef..095b91daa 100644 --- a/lib/dashboard/home/tab_bar/tokens/confirm_token_transaction/view/confirm_token_transaction_page.dart +++ b/lib/dashboard/home/tab_bar/tokens/confirm_token_transaction/view/confirm_token_transaction_page.dart @@ -142,6 +142,11 @@ class _ConfirmWithdrawalViewState extends State { } }, onDoneButtonClick: () { + if (widget.isNFT) { + context.read().fetchFromZero(); + } else { + context.read().fetchFromZero(); + } Navigator.popUntil( context, (route) => route.settings.name == AltMeStrings.dashBoardPage,