Candy-Labs / CandyContracts

Open-source NFT contract implementations
MIT License
11 stars 7 forks source link

Add Merkle root hash as constructor parameter #18

Closed kyokosdream closed 2 years ago

kyokosdream commented 2 years ago

This change follows the same philosophy we designed the contract with, to front-load as much data as possible to the constructor so that owners interacting with this contract have to call the least number of subsequent contract functions and expend gas. Even when this marginally increases the deployment cost of the contract, it is better to move it to the constructor.