txn2 flag in ui branch

This commit is contained in:
julian 2023-11-14 17:21:55 -06:00
parent bf8113f79e
commit d78a3e5104
2 changed files with 6 additions and 5 deletions

View file

@ -850,8 +850,11 @@ class _WalletViewState extends ConsumerState<WalletView> {
text: "See all", text: "See all",
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(
coin == Coin.bitcoincash || ref
coin == Coin.bitcoincashTestnet .read(pWallets)
.getWallet(widget.walletId)
.isarTransactionVersion ==
2
? AllTransactionsV2View.routeName ? AllTransactionsV2View.routeName
: AllTransactionsView.routeName, : AllTransactionsView.routeName,
arguments: walletId, arguments: walletId,

View file

@ -466,9 +466,7 @@ class _DesktopWalletViewState extends ConsumerState<DesktopWalletView> {
} }
} else { } else {
await Navigator.of(context).pushNamed( await Navigator.of(context).pushNamed(
walletInfo.coin == Coin.bitcoincash || wallet.isarTransactionVersion == 2
walletInfo.coin ==
Coin.bitcoincashTestnet
? AllTransactionsV2View.routeName ? AllTransactionsV2View.routeName
: AllTransactionsView.routeName, : AllTransactionsView.routeName,
arguments: widget.walletId, arguments: widget.walletId,