|
|
@@ -171,7 +171,10 @@ func storeNewKey(ks keyStore, rand io.Reader, auth string) (*Key, accounts.Accou
|
|
|
if err != nil {
|
|
|
return nil, accounts.Account{}, err
|
|
|
}
|
|
|
- a := accounts.Account{Address: key.Address, URL: accounts.URL{Scheme: KeyStoreScheme, Path: ks.JoinPath(keyFileName(key.Address))}}
|
|
|
+ a := accounts.Account{
|
|
|
+ Address: key.Address,
|
|
|
+ URL: accounts.URL{Scheme: KeyStoreScheme, Path: ks.JoinPath(keyFileName(key.Address))},
|
|
|
+ }
|
|
|
if err := ks.StoreKey(a.URL.Path, key, auth); err != nil {
|
|
|
zeroKey(key.PrivateKey)
|
|
|
return nil, a, err
|
|
|
@@ -224,5 +227,6 @@ func toISO8601(t time.Time) string {
|
|
|
} else {
|
|
|
tz = fmt.Sprintf("%03d00", offset/3600)
|
|
|
}
|
|
|
- return fmt.Sprintf("%04d-%02d-%02dT%02d-%02d-%02d.%09d%s", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second(), t.Nanosecond(), tz)
|
|
|
+ return fmt.Sprintf("%04d-%02d-%02dT%02d-%02d-%02d.%09d%s",
|
|
|
+ t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second(), t.Nanosecond(), tz)
|
|
|
}
|