From 04e27a166e6e9f9b2eae27bf3c64143302b97046 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 3 May 2024 14:35:35 -0600 Subject: [PATCH] unused code cleanup --- lib/wallets/wallet/impl/epiccash_wallet.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/wallets/wallet/impl/epiccash_wallet.dart b/lib/wallets/wallet/impl/epiccash_wallet.dart index d998a43c3..b2e5ad3f1 100644 --- a/lib/wallets/wallet/impl/epiccash_wallet.dart +++ b/lib/wallets/wallet/impl/epiccash_wallet.dart @@ -303,21 +303,20 @@ class EpiccashWallet extends Bip39Wallet { Future
_generateAndStoreReceivingAddressForIndex( int index, ) async { - Address? address = await getCurrentReceivingAddress(); - final EpicBoxConfigModel epicboxConfig = await getEpicBoxConfig(); if (address != null) { final splitted = address.value.split('@'); //Check if the address is the same as the current epicbox domain //Since we're only using one epicbpox now this doesn't apply but will be // useful in the future - final encodedConfig = jsonEncode(epicboxConfig); + final epicboxConfig = await getEpicBoxConfig(); if (splitted[1] != epicboxConfig.host) { //Update the address address = await thisWalletAddress(index, epicboxConfig); } } else { + final epicboxConfig = await getEpicBoxConfig(); address = await thisWalletAddress(index, epicboxConfig); }