ProjectOpenSea / opensea-creatures

Example non-fungible collectible, to demonstrate OpenSea integration
https://docs.opensea.io
MIT License
1.17k stars 793 forks source link

What Migrations.sol is used for? #196

Open GinoPiazza opened 2 years ago

GinoPiazza commented 2 years ago

Hi, I'm new to NFT smart contracts and I would like to deploy only the Creature and the CreatureFactory contracts but I cannot understand what Migrations.sol do since it is not well documented. What is it used for? Is it necessary to deploy it to allow proper listing (with the possibility to sell items) on OpenSea or can it be avoided? Thanks in advance to whoever will answer, I really appreciate it.

thomasoss commented 2 years ago

Migrations.sol has nothing to do with the Creature contracts. It is a technical piece of the Truffle framework. If you use Truffle to deploy your contracts this contract always will be deployed together with your contracts. You do not need to do anything about it. Just let it be as it is. If you use any other framework like Hardhat or Brownie you can delete the contract or ignore it in the deployment scripts.