From 6f4b3a76ac98319a888193d4064f2527d16a6e62 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 5 Jun 2024 18:36:32 -0500 Subject: [PATCH] change bch and ecash tx ver #s to 2 and use it in the bcash interface --- lib/wallets/crypto_currency/coins/bitcoincash.dart | 2 +- lib/wallets/crypto_currency/coins/ecash.dart | 2 +- lib/wallets/wallet/wallet_mixin_interfaces/bcash_interface.dart | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/wallets/crypto_currency/coins/bitcoincash.dart b/lib/wallets/crypto_currency/coins/bitcoincash.dart index 8a2f91aae..fb2f66a92 100644 --- a/lib/wallets/crypto_currency/coins/bitcoincash.dart +++ b/lib/wallets/crypto_currency/coins/bitcoincash.dart @@ -366,5 +366,5 @@ class Bitcoincash extends Bip39HDCurrency with ElectrumXCurrencyInterface { } @override - int get transactionVersion => 1; + int get transactionVersion => 2; } diff --git a/lib/wallets/crypto_currency/coins/ecash.dart b/lib/wallets/crypto_currency/coins/ecash.dart index a68a82dcd..28529c56a 100644 --- a/lib/wallets/crypto_currency/coins/ecash.dart +++ b/lib/wallets/crypto_currency/coins/ecash.dart @@ -340,5 +340,5 @@ class Ecash extends Bip39HDCurrency with ElectrumXCurrencyInterface { } @override - int get transactionVersion => 1; + int get transactionVersion => 2; } diff --git a/lib/wallets/wallet/wallet_mixin_interfaces/bcash_interface.dart b/lib/wallets/wallet/wallet_mixin_interfaces/bcash_interface.dart index 9559fa848..be0727bfc 100644 --- a/lib/wallets/wallet/wallet_mixin_interfaces/bcash_interface.dart +++ b/lib/wallets/wallet/wallet_mixin_interfaces/bcash_interface.dart @@ -30,6 +30,8 @@ mixin BCashInterface testnet: cryptoCurrency.network == CryptoCurrencyNetwork.test, ); + builder.setVersion(cryptoCurrency.transactionVersion); + // temp tx data to show in gui while waiting for real data from server final List tempInputs = []; final List tempOutputs = [];