mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +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) {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue