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",
onTap: () {
Navigator.of(context).pushNamed(
coin == Coin.bitcoincash ||
coin == Coin.bitcoincashTestnet
ref
.read(pWallets)
.getWallet(widget.walletId)
.isarTransactionVersion ==
2
? AllTransactionsV2View.routeName
: AllTransactionsView.routeName,
arguments: walletId,

View file

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