Merge pull request #372 from public-awesome/skip-whitelist-checks

Skip whitelist checks on mainnet for OE collections
This commit is contained in:
Serkan Reis 2024-04-16 19:24:16 +03:00 committed by GitHub
commit f0b94422b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -367,6 +367,7 @@ export const OpenEditionMinterCreator = ({
}
const checkWhitelistDetails = async () => {
if (NETWORK === 'mainnet') return // Skip whitelist checks on mainnet
if (!whitelistDetails) throw new Error('Please fill out the whitelist details')
if (whitelistDetails.whitelistState === 'existing') {
if (whitelistDetails.contractAddress === '') throw new Error('Whitelist contract address is required')
@ -866,7 +867,7 @@ export const OpenEditionMinterCreator = ({
? mintingDetails.tokenCountLimit
: null,
payment_address: mintingDetails?.paymentAddress || null,
whitelist: NETWORK === 'testnet' ? whitelist : null,
// whitelist: NETWORK === 'testnet' ? whitelist : null,
},
collection_params: {
code_id: collectionDetails?.updatable