From b669b279cddfc6eaa7d1127c802b5d6e6853f778 Mon Sep 17 00:00:00 2001 From: Yaroslav Svitlytskyi Date: Sun, 1 Sep 2024 21:08:17 +0200 Subject: [PATCH] fix: added wallet information initialization --- cmd/root.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index e646ad2a..08b3c33f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -211,6 +211,13 @@ func initConfig() { os.Exit(1) } + // set wallet info along whether split key is used + err = zcncore.SetWalletInfo(walletJSON, false) + if err != nil { + fmt.Println("Error in wallet info initialization", err) + os.Exit(1) + } + // additional settings depending network latency blockchain.SetMaxTxnQuery(cfg.MaxTxnQuery) blockchain.SetQuerySleepTime(cfg.QuerySleepTime)