Commit c178da62 authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

chore: add more ip infringing collections to the blocklist (#6446)

* updated blocked collections and don't allow for address search of blocked collections

* revert to array
parent e3c589ae
......@@ -82,5 +82,9 @@ export function useCollectionSearch(queryOrAddress: string): useCollectionSearch
const isName = !isAddress(queryOrAddress.toLowerCase())
const queryResult = useCollectionQuerySearch(queryOrAddress, /* skip= */ !isName)
const addressResult = useCollection(queryOrAddress, /* skip= */ isName)
return isName ? queryResult : { data: [addressResult.data], loading: addressResult.loading }
return isName
? queryResult
: blocklistedCollections.includes(queryOrAddress)
? { data: [], loading: false }
: { data: [addressResult.data], loading: addressResult.loading }
}
......@@ -27,4 +27,7 @@ export const blocklistedCollections = [
'0xd5eeac01b0d1d929d6cffaaf78020af137277293',
'0x85c08fffa9510f87019efdcf986301873cbb10d6',
'0x32d7e58933fceea6b73a13f8e30605d80915b616',
'0x85c08fffa9510f87019efdcf986301873cbb10d6',
'0xd5eeac01b0d1d929d6cffaaf78020af137277293',
'0x88e49f9fd4cc3d30f2f46c652f59fb52c4874f23',
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment