Skip to content

Commit

Permalink
remove TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Coats committed Jan 10, 2024
1 parent ed420c3 commit 3a5d31a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sdk/src/wallet/core/operations/stronghold_backup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ impl Wallet {
let wallet_data = self.data().await;

// We don't want to overwrite a possible existing wallet
// TODO not too sure about this, it used to check the presence of accounts, this is not 100% equivalent
if !wallet_data.outputs.is_empty() {
return Err(crate::wallet::Error::Backup(
"can't restore backup when there is already a wallet",
Expand Down Expand Up @@ -244,7 +243,6 @@ impl Wallet<StrongholdSecretManager> {
let wallet_data = self.data().await;

// We don't want to overwrite a possible existing wallet
// TODO not too sure about this, it used to check the presence of accounts, this is not 100% equivalent
if !wallet_data.outputs.is_empty() {
return Err(crate::wallet::Error::Backup(
"can't restore backup when there is already a wallet",
Expand Down

0 comments on commit 3a5d31a

Please sign in to comment.