Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzhen1997 committed Nov 4, 2024
1 parent 1acc269 commit 9e347ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selectors.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ func loadChainDetailsBySelector() map[uint64]ChainDetails {

// update chainIDToSelectorMapForFamily
_, exist := chainIDToSelectorMapForFamily[v.Family]
if exist {
chainIDToSelectorMapForFamily[v.Family][v.ChainID] = k
} else {
if !exist {
chainIDToSelectorMapForFamily[v.Family] = make(map[string]uint64)
}

chainIDToSelectorMapForFamily[v.Family][v.ChainID] = k
}

return data.Selectors
Expand Down

0 comments on commit 9e347ff

Please sign in to comment.