Skip to content

Commit

Permalink
feat: Update tozen data after transaction is successfull
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Apr 25, 2024
1 parent ab4684d commit f05066a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ class ConfirmTokenTransactionCubit extends Cubit<ConfirmTokenTransactionState> {
chainRpcUrl: chainRpcUrl,
rpcUrl: chainRpcUrl,
);

resetTransactionAttemptCount();
}
} catch (e, s) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ class _ConfirmWithdrawalViewState extends State<ConfirmWithdrawalView> {
}
},
onDoneButtonClick: () {
if (widget.isNFT) {
context.read<NftCubit>().fetchFromZero();
} else {
context.read<TokensCubit>().fetchFromZero();
}
Navigator.popUntil(
context,
(route) => route.settings.name == AltMeStrings.dashBoardPage,
Expand Down

0 comments on commit f05066a

Please sign in to comment.