Skip to content

Commit

Permalink
fix(eibc): install binaries when eibc client is not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Dec 11, 2024
1 parent cf0ab45 commit a15edf0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmd/eibc/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/dymensionxyz/roller/utils/bash"
"github.com/dymensionxyz/roller/utils/config"
"github.com/dymensionxyz/roller/utils/config/yamlconfig"
"github.com/dymensionxyz/roller/utils/dependencies"
eibcutils "github.com/dymensionxyz/roller/utils/eibc"
"github.com/dymensionxyz/roller/utils/filesystem"
"github.com/dymensionxyz/roller/utils/keys"
Expand Down Expand Up @@ -85,6 +86,16 @@ func Cmd() *cobra.Command {
}

if !isEibcClientInitialized {
pterm.Info.Println("installing eibc client dependencies...")
deps := dependencies.DefaultEibcClientPrebuiltDependencies()
for _, v := range deps {
err := dependencies.InstallBinaryFromRelease(v)
if err != nil {
pterm.Error.Printfln("failed to install binary: %s", err)
return
}
}

pterm.Info.Println("initializing eibc client")
c := eibcutils.GetInitCmd()
err = bash.ExecCmd(c)
Expand Down

0 comments on commit a15edf0

Please sign in to comment.