From 71ca010ffd5aa224b23f42c317d920e122521085 Mon Sep 17 00:00:00 2001 From: josh <josh@elixxir.io> Date: Tue, 21 Jun 2022 10:49:33 -0700 Subject: [PATCH] Fix build issue --- cmd/root.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 66ca4426a..2f0c0c013 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -15,6 +15,7 @@ import ( "encoding/json" "errors" "fmt" + "gitlab.com/elixxir/client/storage/user" "io/fs" "io/ioutil" "log" @@ -545,8 +546,15 @@ func createClient() *xxdk.Cmix { if err != nil { jww.FATAL.Panicf("%v", err) } + + protoUser := &user.Proto{} + err = json.Unmarshal(protoUserJson, protoUser) + if err != nil { + jww.FATAL.Panicf("%v", err) + } + err = xxdk.NewProtoClient_Unsafe(string(ndfJSON), storeDir, - pass, protoUserJson) + pass, protoUser) } else if userIDprefix != "" { err = xxdk.NewVanityClient(string(ndfJSON), storeDir, pass, regCode, userIDprefix) -- GitLab