mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 12:29:31 +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}';
|
return 'https://ordinals.com/tx/${txId}';
|
||||||
case WalletType.litecoin:
|
case WalletType.litecoin:
|
||||||
return 'https://litecoin.earlyordies.com/tx/${txId}';
|
return 'https://litecoin.earlyordies.com/tx/${txId}';
|
||||||
|
case WalletType.bitcoinCash:
|
||||||
|
return 'https://blockchair.com/bitcoin-cash/transaction/${txId}';
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
@ -74,6 +76,8 @@ abstract class UnspentCoinsDetailsViewModelBase with Store {
|
||||||
return S.current.view_transaction_on + 'Ordinals.com';
|
return S.current.view_transaction_on + 'Ordinals.com';
|
||||||
case WalletType.litecoin:
|
case WalletType.litecoin:
|
||||||
return S.current.view_transaction_on + 'Earlyordies.com';
|
return S.current.view_transaction_on + 'Earlyordies.com';
|
||||||
|
case WalletType.bitcoinCash:
|
||||||
|
return S.current.view_transaction_on + 'Blockchair.com';
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,8 @@ abstract class WalletAddressEditOrCreateViewModelBase with Store {
|
||||||
final wallet = _wallet;
|
final wallet = _wallet;
|
||||||
|
|
||||||
if (wallet.type == WalletType.bitcoin
|
if (wallet.type == WalletType.bitcoin
|
||||||
|| wallet.type == WalletType.litecoin) {
|
|| wallet.type == WalletType.litecoin
|
||||||
|
|| wallet.type == WalletType.bitcoinCash) {
|
||||||
await bitcoin!.generateNewAddress(wallet);
|
await bitcoin!.generateNewAddress(wallet);
|
||||||
await wallet.save();
|
await wallet.save();
|
||||||
}
|
}
|
||||||
|
|
|
@ -277,7 +277,7 @@ abstract class WalletAddressListViewModelBase with Store {
|
||||||
|
|
||||||
@computed
|
@computed
|
||||||
bool get showElectrumAddressDisclaimer =>
|
bool get showElectrumAddressDisclaimer =>
|
||||||
_wallet.type == WalletType.bitcoin || _wallet.type == WalletType.litecoin;
|
_wallet.type == WalletType.bitcoin || _wallet.type == WalletType.litecoin || _wallet.type == WalletType.bitcoinCash;
|
||||||
|
|
||||||
@observable
|
@observable
|
||||||
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> _wallet;
|
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> _wallet;
|
||||||
|
|
Loading…
Reference in a new issue