mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-08 20:09:24 +00:00
edit wallet
This commit is contained in:
parent
869f9cbeee
commit
72b2cfbed7
3 changed files with 7 additions and 2 deletions
|
@ -63,6 +63,8 @@ abstract class UnspentCoinsDetailsViewModelBase with Store {
|
|||
return 'https://ordinals.com/tx/${txId}';
|
||||
case WalletType.litecoin:
|
||||
return 'https://litecoin.earlyordies.com/tx/${txId}';
|
||||
case WalletType.bitcoinCash:
|
||||
return 'https://blockchair.com/bitcoin-cash/transaction/${txId}';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
@ -74,6 +76,8 @@ abstract class UnspentCoinsDetailsViewModelBase with Store {
|
|||
return S.current.view_transaction_on + 'Ordinals.com';
|
||||
case WalletType.litecoin:
|
||||
return S.current.view_transaction_on + 'Earlyordies.com';
|
||||
case WalletType.bitcoinCash:
|
||||
return S.current.view_transaction_on + 'Blockchair.com';
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
|
|
@ -66,7 +66,8 @@ abstract class WalletAddressEditOrCreateViewModelBase with Store {
|
|||
final wallet = _wallet;
|
||||
|
||||
if (wallet.type == WalletType.bitcoin
|
||||
|| wallet.type == WalletType.litecoin) {
|
||||
|| wallet.type == WalletType.litecoin
|
||||
|| wallet.type == WalletType.bitcoinCash) {
|
||||
await bitcoin!.generateNewAddress(wallet);
|
||||
await wallet.save();
|
||||
}
|
||||
|
|
|
@ -277,7 +277,7 @@ abstract class WalletAddressListViewModelBase with Store {
|
|||
|
||||
@computed
|
||||
bool get showElectrumAddressDisclaimer =>
|
||||
_wallet.type == WalletType.bitcoin || _wallet.type == WalletType.litecoin;
|
||||
_wallet.type == WalletType.bitcoin || _wallet.type == WalletType.litecoin || _wallet.type == WalletType.bitcoinCash;
|
||||
|
||||
@observable
|
||||
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> _wallet;
|
||||
|
|
Loading…
Reference in a new issue