aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/keystore/presale.go
diff options
context:
space:
mode:
authorWenbiao Zheng <delweng@gmail.com>2018-11-29 18:04:56 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-29 18:04:56 +0800
commit32d35c9c088463efac49aeb0f3e6d48cfb373a40 (patch)
treefb414241de45f63e1215edba95d5d432d18f6e1e /accounts/keystore/presale.go
parenta4428c505e84aaa1982d4cc522e0c0ffe608890a (diff)
downloadgo-tangerine-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar
go-tangerine-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.gz
go-tangerine-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.bz2
go-tangerine-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.lz
go-tangerine-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.xz
go-tangerine-32d35c9c088463efac49aeb0f3e6d48cfb373a40.tar.zst
go-tangerine-32d35c9c088463efac49aeb0f3e6d48cfb373a40.zip
accounts/keystore: delete the redundant keystore in filename (#17930)
* accounts/keystore: reduce file name length * accounts/keystore: reduce code line width
Diffstat (limited to 'accounts/keystore/presale.go')
-rw-r--r--accounts/keystore/presale.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/accounts/keystore/presale.go b/accounts/keystore/presale.go
index 1554294e1..03055245f 100644
--- a/accounts/keystore/presale.go
+++ b/accounts/keystore/presale.go
@@ -38,7 +38,13 @@ func importPreSaleKey(keyStore keyStore, keyJSON []byte, password string) (accou
return accounts.Account{}, nil, err
}
key.Id = uuid.NewRandom()
- a := accounts.Account{Address: key.Address, URL: accounts.URL{Scheme: KeyStoreScheme, Path: keyStore.JoinPath(keyFileName(key.Address))}}
+ a := accounts.Account{
+ Address: key.Address,
+ URL: accounts.URL{
+ Scheme: KeyStoreScheme,
+ Path: keyStore.JoinPath(keyFileName(key.Address)),
+ },
+ }
err = keyStore.StoreKey(a.URL.Path, key, password)
return a, key, err
}