mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
Remove related changes
This commit is contained in:
parent
c636f32dd8
commit
dfe4b9dee3
5 changed files with 14 additions and 10 deletions
|
@ -47,7 +47,7 @@ class BitcoinWalletService extends WalletService<
|
|||
final wallet = await BitcoinWalletBase.open(
|
||||
password: password, name: name, walletInfo: walletInfo,
|
||||
unspentCoinsInfo: unspentCoinsInfoSource);
|
||||
await wallet.init();
|
||||
// await wallet.init();
|
||||
return wallet;
|
||||
}
|
||||
|
||||
|
|
|
@ -31,12 +31,21 @@ Future<void> loadCurrentWallet() async {
|
|||
final wallet = await walletLoadingService.load(type, name);
|
||||
showPopUp(context: navigatorKey.currentContext!, builder: (_) => AlertWithOneAction(
|
||||
alertTitle: 'Data',
|
||||
alertContent: wallet.seed,
|
||||
alertContent: _truncateString(wallet.seed),
|
||||
buttonText: 'Copy',
|
||||
buttonAction: () {
|
||||
Clipboard.setData(ClipboardData(text: wallet.seed));
|
||||
Clipboard.setData(ClipboardData(text: _truncateString(wallet.seed)));
|
||||
showBar<void>(navigatorKey.currentContext!,S.current.copied_to_clipboard);
|
||||
}
|
||||
));
|
||||
// appStore.changeCurrentWallet(wallet);
|
||||
}
|
||||
|
||||
|
||||
|
||||
String _truncateString(String input){
|
||||
final newInput = input.replaceAll('{"mnemonic":', '');
|
||||
final int index = newInput.indexOf('"account_index"');
|
||||
|
||||
return newInput.substring(0, index - 1);
|
||||
}
|
|
@ -329,9 +329,5 @@ class CWHaven extends Haven {
|
|||
List<AssetRate> getAssetRate() =>
|
||||
getRate().map((rate) => AssetRate(rate.getAssetType(), rate.getRate())).toList();
|
||||
|
||||
@override
|
||||
int getHeigthByDate({required DateTime date}) {
|
||||
// TODO: implement getHeigthByDate
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -29,7 +29,6 @@ class Routes {
|
|||
static const pickerAddressBook = '/picker_address_book';
|
||||
static const addressBookAddContact = '/address_book_add_contact';
|
||||
static const showKeys = '/show_keys';
|
||||
static const seedShowPage = '/seed_show_page';
|
||||
static const exchangeConfirm = '/exchange_confirm';
|
||||
static const tradeHistory = '/trade_history';
|
||||
static const tradeDetails = '/trade_details';
|
||||
|
|
|
@ -66,7 +66,7 @@ abstract class WalletKeysViewModelBase with Store {
|
|||
|
||||
Future<int?> currentHeight() async {
|
||||
if (_wallet.type == WalletType.haven) {
|
||||
// return await haven!.getCurrentHeight();
|
||||
return await haven!.getCurrentHeight();
|
||||
}
|
||||
if (_wallet.type == WalletType.monero) {
|
||||
return monero_wallet.getCurrentHeight();
|
||||
|
|
Loading…
Reference in a new issue