Skip to content

Commit

Permalink
review: simplify allConsumers to not use index
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Oct 3, 2024
1 parent db19bf9 commit 188f6c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions local-interchain/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
Current the neutron heighliner image does not work due to some /tmp issue in the docker image. For this reason, you must compile the image yourself to use the latest v50 instance.

```bash
git clone https://github.com/neutron-org/neutron.git
git clone https://github.com/neutron-org/neutron.git --depth 1 --branch v4.2.1
cd neutron
git checkout v4.2.1

# neutron-node:latest
make build-e2e-docker-image
Expand Down
6 changes: 3 additions & 3 deletions local-interchain/interchain/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ func StartChain(installDir, chainCfgFile string, ac *types.AppStartConfig) {
for provider, consumers := range icsPair {
var p ibc.Chain

allConsumers := make([]ibc.Chain, len(consumers))
for idx, consumer := range consumers {
allConsumers := []ibc.Chain{}
for _, consumer := range consumers {
for _, chain := range chains {
if chain.Config().ChainID == provider {
p = chain
}
if chain.Config().ChainID == consumer {
allConsumers[idx] = chain
allConsumers = append(allConsumers, chain)
}
}
}
Expand Down

0 comments on commit 188f6c9

Please sign in to comment.