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:
Omar Hatem
2023-12-22 23:31:06 +02:00
committed by GitHub
parent be285e7ebf
commit c8856f5ca1
9 changed files with 32 additions and 20 deletions
+1 -1
View File
@@ -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);
}