mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix: fix amount mapping for OCP (#2190)
This commit is contained in:
parent
2445c2ae84
commit
37ede52ea6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue