temp bch send fix testnet and fix tests

This commit is contained in:
julian 2022-11-04 18:18:25 -06:00
parent e06910a34a
commit 7dbc9d270b
2 changed files with 5 additions and 2 deletions

View file

@ -1163,6 +1163,10 @@ class BitcoinCashWallet extends CoinServiceAPI {
print("format $format");
}
if (_coin == Coin.bitcoincashTestnet) {
return true;
}
if (format == bitbox.Address.formatCashAddr) {
String addr = address;
if (address.contains(":")) {

View file

@ -1,4 +1,3 @@
import 'package:bitcoindart/bitcoindart.dart';
import 'package:decimal/decimal.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:hive/hive.dart';
@ -140,7 +139,7 @@ void main() {
test("invalid mainnet bitcoincash legacy/p2pkh address", () {
expect(
mainnetWallet?.validateAddress("mhqpGtwhcR6gFuuRjLTpHo41919QfuGy8Y"),
true);
false);
expect(secureStore?.interactions, 0);
verifyNoMoreInteractions(client);
verifyNoMoreInteractions(cachedClient);