Commit 083ec425 authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

feat: approve collections in parallel on desktop, sequentially on mobile (#5374)

approve in parallel on desktop
Co-authored-by: default avatarCharles Bachmeier <charlie@genie.xyz>
parent e8c09db1
...@@ -99,10 +99,19 @@ const ListingModal = () => { ...@@ -99,10 +99,19 @@ const ListingModal = () => {
setOpenIndex(1) setOpenIndex(1)
} }
const looksRareAddress = addresses.TRANSFER_MANAGER_ERC721 const looksRareAddress = addresses.TRANSFER_MANAGER_ERC721
// for all unqiue collection, marketplace combos -> approve collections // for all unique collection, marketplace combos -> approve collections
for (const collectionRow of collectionsRequiringApproval) { for (const collectionRow of collectionsRequiringApproval) {
verifyStatus(collectionRow.status) && verifyStatus(collectionRow.status) &&
(await approveCollectionRow( (isMobile
? await approveCollectionRow(
collectionRow,
collectionsRequiringApproval,
setCollectionsRequiringApproval,
signer,
looksRareAddress,
pauseAllRows
)
: approveCollectionRow(
collectionRow, collectionRow,
collectionsRequiringApproval, collectionsRequiringApproval,
setCollectionsRequiringApproval, setCollectionsRequiringApproval,
......
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