Skip to content

Commit

Permalink
fix ports check from chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Jun 12, 2024
1 parent a4aaa13 commit f87a4cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions clients/js/packages/client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,12 @@ export class StarshipClient implements StarshipClientI {
this.log("Starting new port forwarding...");

this.config.chains.forEach(chain => {
// TODO Talk to Anmol about chain.name and chain.name, seems to be opposite of intuition using chainReg as concept
const chainPodPorts = this.podPorts.chains[chain.name] || this.podPorts.chains.defaultPorts;

if (chain.ports.rpc) this.forwardPort(chain, chain.ports.rpc, chainPodPorts.rpc);
if (chain.ports.rest) this.forwardPort(chain, chain.ports.rest, chainPodPorts.rest);
if (chain.ports.exposer) this.forwardPort(chain, chain.ports.exposer, chainPodPorts.exposer);
if (chain.ports.faucet) this.forwardPort(chain, chain.ports.faucet, chainPodPorts.faucet);
if (chain.ports?.rpc) this.forwardPort(chain, chain.ports.rpc, chainPodPorts.rpc);
if (chain.ports?.rest) this.forwardPort(chain, chain.ports.rest, chainPodPorts.rest);
if (chain.ports?.exposer) this.forwardPort(chain, chain.ports.exposer, chainPodPorts.exposer);
if (chain.ports?.faucet) this.forwardPort(chain, chain.ports.faucet, chainPodPorts.faucet);
});

if (this.config.registry?.enabled) {
Expand Down

0 comments on commit f87a4cc

Please sign in to comment.