mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix: fix amount mapping for OCP (#2190)
This commit is contained in:
@@ -152,7 +152,7 @@ class OpenCryptoPayService {
|
||||
String _getAmountByAsset(OpenCryptoPayRequest request, CryptoCurrency asset) {
|
||||
final method = _getMethod(asset);
|
||||
return request.methods[method]!
|
||||
.firstWhere((e) => e.symbol == asset.title)
|
||||
.firstWhere((e) => e.symbol.toUpperCase() == asset.title.toUpperCase())
|
||||
.amount;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user