diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-01-17 19:25:36 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-01-17 19:25:36 +0800 |
commit | 230530f5ea71f45c5d89f62126e60d24635136d5 (patch) | |
tree | e1f64e3903b85ac8be400bdcec94b5cf9bbc0a24 /accounts/account_manager.go | |
parent | 26d385c18b5eb003d9a69ff618c78acbe594db44 (diff) | |
download | go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.gz go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.bz2 go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.lz go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.xz go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.tar.zst go-tangerine-230530f5ea71f45c5d89f62126e60d24635136d5.zip |
accounts, mobile: make account manager API a bit more uniform
Diffstat (limited to 'accounts/account_manager.go')
-rw-r--r-- | accounts/account_manager.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accounts/account_manager.go b/accounts/account_manager.go index 6460b6e85..01dd62e25 100644 --- a/accounts/account_manager.go +++ b/accounts/account_manager.go @@ -113,9 +113,9 @@ func (am *Manager) Accounts() []Account { return am.cache.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 *Manager) DeleteAccount(a Account, passphrase string) error { +// Delete deletes the key matched by account if the passphrase is correct. +// If the account contains no filename, the address must match a unique key. +func (am *Manager) Delete(a Account, passphrase string) error { // Decrypting the key isn't really necessary, but we do // it anyway to check the password and zero out the key // immediately afterwards. |