mirror of
https://github.com/status-im/status-go.git
synced 2025-01-21 20:20:29 +00:00
Use provided datadir
This commit is contained in:
parent
b701005f3b
commit
46399d1905
@ -324,9 +324,9 @@ func defaultNodeConfig(installationID string) (*params.NodeConfig, error) {
|
||||
}
|
||||
|
||||
func ImportAccount(seedPhrase string, backend *api.GethStatusBackend) error {
|
||||
backend.UpdateRootDataDir("./tmp")
|
||||
backend.UpdateRootDataDir(*dataDir)
|
||||
manager := backend.AccountManager()
|
||||
if err := manager.InitKeystore("./tmp"); err != nil {
|
||||
if err := manager.InitKeystore(*dataDir); err != nil {
|
||||
return err
|
||||
}
|
||||
err := backend.OpenAccounts()
|
||||
|
Loading…
x
Reference in New Issue
Block a user