mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 17:29:23 +00:00
unused code cleanup
This commit is contained in:
parent
b1534d6b03
commit
04e27a166e
1 changed files with 2 additions and 3 deletions
|
@ -303,21 +303,20 @@ class EpiccashWallet extends Bip39Wallet {
|
|||
Future<Address> _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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue