accounts, mobile: make account manager API a bit more uniform

This commit is contained in:
Péter Szilágyi
2017-01-17 13:25:36 +02:00
parent 26d385c18b
commit 230530f5ea
3 changed files with 8 additions and 8 deletions

View File

@ -103,7 +103,7 @@ func (am *AccountManager) GetAccounts() *Accounts {
// DeleteAccount deletes the key matched by account if the passphrase is correct.
// If a contains no filename, the address must match a unique key.
func (am *AccountManager) DeleteAccount(account *Account, passphrase string) error {
return am.manager.DeleteAccount(accounts.Account{
return am.manager.Delete(accounts.Account{
Address: account.account.Address,
File: account.account.File,
}, passphrase)