mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 20:19:25 +00:00
Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-438-add-nano
This commit is contained in:
commit
ea2b6dbdb1
2 changed files with 3 additions and 0 deletions
|
@ -182,6 +182,8 @@ class AnonPayApi {
|
||||||
switch (currency) {
|
switch (currency) {
|
||||||
case CryptoCurrency.usdt:
|
case CryptoCurrency.usdt:
|
||||||
return CryptoCurrency.btc.title.toLowerCase();
|
return CryptoCurrency.btc.title.toLowerCase();
|
||||||
|
case CryptoCurrency.eth:
|
||||||
|
return 'ERC20';
|
||||||
default:
|
default:
|
||||||
return currency.tag != null ? _normalizeTag(currency.tag!) : 'Mainnet';
|
return currency.tag != null ? _normalizeTag(currency.tag!) : 'Mainnet';
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,6 +154,7 @@ class AnonPayInvoicePage extends BasePage {
|
||||||
? S.of(context).create_invoice
|
? S.of(context).create_invoice
|
||||||
: S.of(context).create_donation_link,
|
: S.of(context).create_donation_link,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
FocusScope.of(context).unfocus();
|
||||||
anonInvoicePageViewModel.setRequestParams(
|
anonInvoicePageViewModel.setRequestParams(
|
||||||
inputAmount: _amountController.text,
|
inputAmount: _amountController.text,
|
||||||
inputName: _nameController.text,
|
inputName: _nameController.text,
|
||||||
|
|
Loading…
Reference in a new issue