NFT News, Updates, Sources, To Buy & Sell, Advice, Disscussions, Tips, Forum, Market, Crypto, & more!

in

Minting ERC721 NFTs with Factory contract on Mumbai Testnet

Minting ERC721 NFTs with Factory contract on Mumbai Testnet thumbnail
Minting ERC721 NFTs with Factory contract on Mumbai Testnet thumbnail

I successfully deployed a factory contract that mints NFTs from an ERC721 contract on Rinkeby test network. Everything works flawless on the Ethereum Testnet.

But when i deploy to polygon's Mumbai Testnet i get the following error:

Gas estimation failed Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }"

  • OK - Factory works perfect on Rinkeby and gets displayed on OpenSea
  • OK - Minting from collection contract directly works on Mumbai
  • OK - Collection contract on Mumbai shows up on OpenSea with all items that got minted
  • FAIL - After transferring ownership to the factory, the factory contract can not mint (see above error)
  • FAIL - Factory contract does not show up on OpenSea

Code on Github: https://github.com/vzoo/ERC721-with-EIP2981-and-reusable-factory-for-OpenSea/blob/c68e2a389cac78ff6502a07f320989106fc652e3/contracts/VZOOFactory.sol#L154

Example factory contract on OS (rinkeby): https://testnets.opensea.io/collection/vzoo-public-sale-v2

Are there any resources or working examples for deploying a factory contract on Polygon Matic/Mumbai? Or do you have any idea what's wrong with the code - is it the proxy part?

Thankful for any hints

What do you think?

Game Of Silks, Horse Racing NFT That Mirrors Real World Horse Races, Partners With Arbitrum thumbnail

Game Of Silks, Horse Racing NFT That Mirrors Real World Horse Races, Partners With Arbitrum

“Mirror to Infinity” thumbnail

“Mirror to Infinity”