MagicDrop is a collection of EVM minting protocols that enable the multi stage minting, per stage WL management, per stage supply limit, and crossmint support.
This adds the ability to set the ERC721M contract to accept payment in an ERC-20 token rather than the native currency. These changes are non-breaking and should allow the contract to operate as before if native currency payment is all that's needed.
mintCurrency is the contract address of the ERC-20 token to accept payment in. If set to 0 address (default), the contract accepts the native currency for minting
Using OZ's SafeERC20 for its safeTransferFrom and safeTransfer functions that throw on failure
This adds the ability to set the ERC721M contract to accept payment in an ERC-20 token rather than the native currency. These changes are non-breaking and should allow the contract to operate as before if native currency payment is all that's needed.
mintCurrency
is the contract address of the ERC-20 token to accept payment in. If set to 0 address (default), the contract accepts the native currency for mintingsafeTransferFrom
andsafeTransfer
functions that throw on failure