temp bch send fix

This commit is contained in:
julian 2022-11-04 17:22:22 -06:00
parent ccd94fcf86
commit 74b075328f

View file

@ -1162,7 +1162,17 @@ class BitcoinCashWallet extends CoinServiceAPI {
if (kDebugMode) {
print("format $format");
}
return true;
if (format == bitbox.Address.formatCashAddr) {
String addr = address;
if (address.contains(":")) {
addr = address.split(":").last;
}
return addr.startsWith("q");
} else {
return address.startsWith("1");
}
} catch (e) {
return false;
}