From 976aa541b21896b9e5e856620b82fcd9ee39d135 Mon Sep 17 00:00:00 2001 From: artemijspavlovs <19916123+artemijspavlovs@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:21:00 +0700 Subject: [PATCH] fix: get the default eibc client version from remote --- utils/dependencies/eibc-client.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/utils/dependencies/eibc-client.go b/utils/dependencies/eibc-client.go index 5a2929b8..32b494e9 100644 --- a/utils/dependencies/eibc-client.go +++ b/utils/dependencies/eibc-client.go @@ -1,22 +1,27 @@ package dependencies import ( + "github.com/pterm/pterm" + "github.com/dymensionxyz/roller/cmd/consts" "github.com/dymensionxyz/roller/utils/dependencies/types" -) - -const ( - DefaultEibcClientVersion = "v1.0.0-alpha-rc03" + "github.com/dymensionxyz/roller/utils/firebase" ) func DefaultEibcClientPrebuiltDependencies() map[string]types.Dependency { + bvi, err := firebase.GetDependencyVersions() + if err != nil { + pterm.Error.Println("failed to fetch binary versions: ", err) + return nil + } + return map[string]types.Dependency{ "eibc-client": { DependencyName: "eibc-client", RepositoryOwner: "dymensionxyz", RepositoryName: "eibc-client", RepositoryUrl: "https://github.com/dymensionxyz/eibc-client", - Release: DefaultEibcClientVersion, + Release: bvi.EibcClient, Binaries: []types.BinaryPathPair{ { Binary: "eibc-client",