Skip to content

Commit 47a0a92

Browse files
committed
fixup: Ensure GetChainConfigContent includes non-primary chains
1 parent f828482 commit 47a0a92

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/fixture/tmpnet/network.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,14 @@ func (n *Network) GetChainConfigContent() (string, error) {
895895
Config: marshaledFlags,
896896
}
897897
}
898+
for _, subnet := range n.Subnets {
899+
for _, chain := range subnet.Chains {
900+
chainConfigs[chain.ChainID.String()] = chains.ChainConfig{
901+
Config: []byte(chain.Config),
902+
}
903+
}
904+
}
905+
898906
marshaledChainConfigs, err := json.Marshal(chainConfigs)
899907
if err != nil {
900908
return "", fmt.Errorf("failed to marshal chain configs: %w", err)

0 commit comments

Comments
 (0)