mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-03 12:24:19 +01:00
Generic fixes (#1243)
* handle currency names with appended network * Fix BCH sending issue for p2sh addresses * Update app versions [skip ci]
This commit is contained in:
@@ -245,7 +245,7 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> implemen
|
||||
}
|
||||
|
||||
static CryptoCurrency fromFullName(String name) {
|
||||
if (CryptoCurrency._fullNameCurrencyMap[name.toLowerCase()] == null) {
|
||||
if (CryptoCurrency._fullNameCurrencyMap[name.split("(").first.trim().toLowerCase()] == null) {
|
||||
final s = 'Unexpected token: $name for CryptoCurrency fromFullName';
|
||||
throw ArgumentError.value(name, 'Fullname', s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user