aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/keystore/presale.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-08 21:53:02 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-13 20:00:08 +0800
commitc5215fdd48231622dd56aba63a5187c6e42828d4 (patch)
tree98bdb47dccb9ef3deaa571585c32db9d19166a80 /accounts/keystore/presale.go
parentfad5eb0a87abfc12812647344a26de8a43830182 (diff)
downloadgo-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.gz
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.bz2
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.lz
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.xz
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.tar.zst
go-tangerine-c5215fdd48231622dd56aba63a5187c6e42828d4.zip
accounts, cmd, internal, mobile, node: canonical account URLs
Diffstat (limited to 'accounts/keystore/presale.go')
-rw-r--r--accounts/keystore/presale.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/keystore/presale.go b/accounts/keystore/presale.go
index 948320e0a..5b883c45f 100644
--- a/accounts/keystore/presale.go
+++ b/accounts/keystore/presale.go
@@ -38,8 +38,8 @@ 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: keyStore.JoinPath(keyFileName(key.Address))}
- err = keyStore.StoreKey(a.URL, key, password)
+ 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
}