From 46399d1905d848ef00142366b0a2d46b14cce3cc Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Mon, 29 May 2023 16:51:23 +0100 Subject: [PATCH] Use provided datadir --- cmd/spiff-workflow/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/spiff-workflow/main.go b/cmd/spiff-workflow/main.go index 220ed8501..17cb12fa1 100644 --- a/cmd/spiff-workflow/main.go +++ b/cmd/spiff-workflow/main.go @@ -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()