change bch and ecash tx ver #s to 2 and use it in the bcash interface

This commit is contained in:
sneurlax 2024-06-05 18:36:32 -05:00
parent 42ab07a586
commit 6f4b3a76ac
3 changed files with 4 additions and 2 deletions

View file

@ -366,5 +366,5 @@ class Bitcoincash extends Bip39HDCurrency with ElectrumXCurrencyInterface {
}
@override
int get transactionVersion => 1;
int get transactionVersion => 2;
}

View file

@ -340,5 +340,5 @@ class Ecash extends Bip39HDCurrency with ElectrumXCurrencyInterface {
}
@override
int get transactionVersion => 1;
int get transactionVersion => 2;
}

View file

@ -30,6 +30,8 @@ mixin BCashInterface<T extends ElectrumXCurrencyInterface>
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<InputV2> tempInputs = [];
final List<OutputV2> tempOutputs = [];