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,17 +99,26 @@ const ListingModal = () => { ...@@ -99,17 +99,26 @@ 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
collectionRow, ? await approveCollectionRow(
collectionsRequiringApproval, collectionRow,
setCollectionsRequiringApproval, collectionsRequiringApproval,
signer, setCollectionsRequiringApproval,
looksRareAddress, signer,
pauseAllRows looksRareAddress,
)) pauseAllRows
)
: approveCollectionRow(
collectionRow,
collectionsRequiringApproval,
setCollectionsRequiringApproval,
signer,
looksRareAddress,
pauseAllRows
))
} }
} }
......
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