dabit3 / polygon-ethereum-nextjs-marketplace

A full stack digital marketplace running on Ethereum with Polygon & Next.js
MIT License
1.3k stars 878 forks source link

Design pattern with marketplace #2

Open damianlluch opened 3 years ago

damianlluch commented 3 years ago

Hi, thanks for sharing your work. I am developing a marketplace with auction, and I am using the inheritance design pattern to develop the contracts. One main contract and two legacy contracts for auction and marketplace. I don't know if the approach I am using is the right one. I see that your marketplace does not have inheritance, but you link them in the migration. Why did you choose this approach instead of the one I'm trying to do (it's the first time I have to split contracts and I'm not sure which is the best way).

In that case, in an inheritance of contracts how do you link them in the migrations, do you know?

thanks