mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-25 04:49:36 +00:00
temp bch send fix
This commit is contained in:
parent
ccd94fcf86
commit
74b075328f
1 changed files with 11 additions and 1 deletions
|
@ -1162,7 +1162,17 @@ class BitcoinCashWallet extends CoinServiceAPI {
|
||||||
if (kDebugMode) {
|
if (kDebugMode) {
|
||||||
print("format $format");
|
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) {
|
} catch (e) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue