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
This commit is contained in:
Charles Bachmeier 2023-04-26 10:31:49 -07:00 committed by GitHub
parent e3c589ae41
commit c178da626f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

@ -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',
]