Fix Ethereum network for anonpay invoice (#1051)
Omar Hatem committed
Aug 19, 2023 at 00:55 UTC
5556d9ef965ad5c476aa32bf46f8710d77fd48ac
2 files changed
+3
lib/anonpay/anonpay_api.dart
+2
@@ -182,6 +182,8 @@ class AnonPayApi {
182
switch (currency) {
183
case CryptoCurrency.usdt:
184
return CryptoCurrency.btc.title.toLowerCase();
185
+ case CryptoCurrency.eth:
186
+ return 'ERC20';
187
default:
188
return currency.tag != null ? _normalizeTag(currency.tag!) : 'Mainnet';
189
}
lib/src/screens/receive/anonpay_invoice_page.dart
+1
@@ -154,6 +154,7 @@ class AnonPayInvoicePage extends BasePage {
154
? S.of(context).create_invoice
155
: S.of(context).create_donation_link,
156
onPressed: () {
157
+ FocusScope.of(context).unfocus();
158
anonInvoicePageViewModel.setRequestParams(
159
inputAmount: _amountController.text,
160
inputName: _nameController.text,