Remove related changes

This commit is contained in:
Godwin Asuquo 2023-04-03 22:58:08 +03:00
parent c636f32dd8
commit dfe4b9dee3
5 changed files with 14 additions and 10 deletions

View file

@ -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;
}

View file

@ -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);
}

View file

@ -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();
}
}

View file

@ -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';

View file

@ -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();