From 5556d9ef965ad5c476aa32bf46f8710d77fd48ac Mon Sep 17 00:00:00 2001 From: Omar Hatem Date: Sat, 19 Aug 2023 00:55:18 +0300 Subject: [PATCH] Fix Ethereum network for anonpay invoice (#1051) --- lib/anonpay/anonpay_api.dart | 2 ++ lib/src/screens/receive/anonpay_invoice_page.dart | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/anonpay/anonpay_api.dart b/lib/anonpay/anonpay_api.dart index bc6abc6e2..e46499407 100644 --- a/lib/anonpay/anonpay_api.dart +++ b/lib/anonpay/anonpay_api.dart @@ -182,6 +182,8 @@ class AnonPayApi { switch (currency) { case CryptoCurrency.usdt: return CryptoCurrency.btc.title.toLowerCase(); + case CryptoCurrency.eth: + return 'ERC20'; default: return currency.tag != null ? _normalizeTag(currency.tag!) : 'Mainnet'; } diff --git a/lib/src/screens/receive/anonpay_invoice_page.dart b/lib/src/screens/receive/anonpay_invoice_page.dart index 606383faa..deda679c5 100644 --- a/lib/src/screens/receive/anonpay_invoice_page.dart +++ b/lib/src/screens/receive/anonpay_invoice_page.dart @@ -154,6 +154,7 @@ class AnonPayInvoicePage extends BasePage { ? S.of(context).create_invoice : S.of(context).create_donation_link, onPressed: () { + FocusScope.of(context).unfocus(); anonInvoicePageViewModel.setRequestParams( inputAmount: _amountController.text, inputName: _nameController.text,