Skip to content

Commit

Permalink
fix: handle rollapp's vm type properly during dep installation
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Sep 22, 2024
1 parent a46c41a commit 7af13d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/dependencies/dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -93,6 +93,7 @@ func InstallBinaries(
},
},
}

if raVmType == "evm" {
buildableDeps["rollapp"] = types.Dependency{
Name: "rollapp",
Expand Down Expand Up @@ -127,6 +128,8 @@ func InstallBinaries(
},
},
}
} else {
return fmt.Errorf("RollApp VM '%s' type is not supported", raVmType)
}
}

Expand Down

0 comments on commit 7af13d8

Please sign in to comment.