From 28ed6501b1916890d63e9893e3c70dbba6391900 Mon Sep 17 00:00:00 2001 From: hawkbee1 Date: Wed, 19 Jul 2023 18:14:18 +0200 Subject: [PATCH] At wallet creation, add an ethereum crypto account #1737 --- lib/wallet/cubit/wallet_cubit.dart | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/wallet/cubit/wallet_cubit.dart b/lib/wallet/cubit/wallet_cubit.dart index 719d833bf..01ed265b0 100644 --- a/lib/wallet/cubit/wallet_cubit.dart +++ b/lib/wallet/cubit/wallet_cubit.dart @@ -228,6 +228,19 @@ class WalletCubit extends Cubit { showStatus: showStatus, ), ); + + /// Ethereum at start + cryptoAccountDataList.add( + await _createBlockchainAccount( + accountName: accountName, + mnemonicOrKey: mnemonicOrKey, + isImported: isImported, + isSecretKey: isSecretKey, + blockchainType: BlockchainType.ethereum, + totalAccountsYet: accountsCount + 3, + showStatus: showStatus, + ), + ); } }