Skip to content

Commit

Permalink
fix loop variable
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Jun 11, 2024
1 parent 1d9d303 commit 9cdbdcc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ $ %s ch set-backup-rpc-addr ibc-0 https://abc.xyz.com:443,https://123.456.com:44
chainName := args[0]
rpc_addresses := args[1]

// Split rpc_addresses by ','
// split rpc_addresses by ','
rpc_addresses_list := strings.Split(rpc_addresses, ",")

// Loop through and ensure valid
// loop through and ensure valid
for _, rpc_address := range rpc_addresses_list {
rpc_address := rpc_address
if !isValidURL(rpc_address) {
return invalidRpcAddr(rpc_address)
}
Expand Down

0 comments on commit 9cdbdcc

Please sign in to comment.