Fix DeleteAccount

This commit is contained in:
Vitaliy Vlasov 2022-07-11 20:41:43 +03:00
parent 3a46b05114
commit 28b76ce4ca
1 changed files with 3 additions and 2 deletions

View File

@ -2800,12 +2800,13 @@ func (m *Messenger) SaveAccounts(accs []*accounts.Account) error {
}
func (m *Messenger) DeleteAccount(address types.Address) error {
err := m.settings.DeleteAccount(address)
acc, err := m.settings.GetAccountByAddress(address)
if err != nil {
return err
}
acc, err := m.settings.GetAccountByAddress(address)
err = m.settings.DeleteAccount(address)
if err != nil {
return err
}