Skip to content

Commit aa9c64d

Browse files
committed
FetchIndex, minor fix on filter
1 parent 59d64ee commit aa9c64d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tokendirectory.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,12 @@ func filteredIndex(index TokenDirectoryIndex, filter *IndexFilter) TokenDirector
645645
for _, chainID := range filter.ChainIDs {
646646
out[chainID] = index[chainID]
647647
}
648+
} else {
649+
for chainID, entries := range index {
650+
if chainID != 0 {
651+
out[chainID] = entries
652+
}
653+
}
648654
}
649655
if filter.External {
650656
out[0] = index[0]

0 commit comments

Comments
 (0)