Skip to content

Commit 0646cc8

Browse files
committed
Merge pull request #1453 from ethersphere/frozen-accounts
accounts, crypto: fixed file naming for windows
2 parents 97d22be + c3f5403 commit 0646cc8

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

accounts/account_manager.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,5 @@ func (am *Manager) ImportPreSaleKey(keyJSON []byte, password string) (acc Accoun
228228
if err != nil {
229229
return
230230
}
231-
if err = am.keyStore.StoreKey(key, password); err != nil {
232-
return
233-
}
234231
return Account{Address: key.Address}, nil
235232
}

crypto/key_store_plain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func toISO8601(t time.Time) string {
189189
} else {
190190
tz = fmt.Sprintf("%03d00", offset/3600)
191191
}
192-
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)
192+
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)
193193
}
194194

195195
func getKeyAddresses(keysDirPath string) (addresses []common.Address, err error) {

0 commit comments

Comments
 (0)