From 7af13d8521992a17b9f200bf9a9465cdde77c4fa Mon Sep 17 00:00:00 2001 From: artemijspavlovs <19916123+artemijspavlovs@users.noreply.github.com> Date: Sun, 22 Sep 2024 13:32:41 +0400 Subject: [PATCH] fix: handle rollapp's vm type properly during dep installation --- utils/dependencies/dependencies.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/dependencies/dependencies.go b/utils/dependencies/dependencies.go index 933cf3db..ef4356f2 100644 --- a/utils/dependencies/dependencies.go +++ b/utils/dependencies/dependencies.go @@ -36,7 +36,7 @@ func InstallBinaries( } var raBinCommit string - raVmType := raResp.Rollapp.VmType + raVmType := strings.ToLower(raResp.Rollapp.VmType) raBech32Prefix := raResp.Rollapp.GenesisInfo.Bech32Prefix if !withMockDA { // TODO refactor, this genesis file fetch is redundand and will slow the process down @@ -93,6 +93,7 @@ func InstallBinaries( }, }, } + if raVmType == "evm" { buildableDeps["rollapp"] = types.Dependency{ Name: "rollapp", @@ -127,6 +128,8 @@ func InstallBinaries( }, }, } + } else { + return fmt.Errorf("RollApp VM '%s' type is not supported", raVmType) } }