Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Nov 23, 2024
1 parent 4c8bed0 commit e180d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/blockchaincmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ func CheckForInvalidDeployAndGetAvagoVersion(
}

if networkRunning {
if userProvidedAvagoVersion == "latest" {
if userProvidedAvagoVersion == constants.LatestAvalancheGoVersion {
if runningRPCVersion != configuredRPCVersion && !skipRPCCheck {
return "", fmt.Errorf(
"the current avalanchego deployment uses rpc version %d but your subnet has version %d and is not compatible",
Expand Down
4 changes: 2 additions & 2 deletions pkg/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const (
AWSGP3DefaultIOPS = 3000
AWSGP3DefaultThroughput = 125
SimulatePublicNetwork = "SIMULATE_PUBLIC_NETWORK"

OperateOfflineEnvVarName = "CLIOFFLINE"
LatestAvalancheGoVersion = "latest"
OperateOfflineEnvVarName = "CLIOFFLINE"

PublicAccess HTTPAccess = true
PrivateAccess HTTPAccess = false
Expand Down

0 comments on commit e180d96

Please # to comment.