HashLips / hashlips_nft_contract

A simple NFT smart contract that works with the rest of the HashLips ecosystem.
MIT License
835 stars 674 forks source link

Setting the cost for deploying on polygon network #61

Open ElDla opened 2 years ago

ElDla commented 2 years ago

In the tutorial (Ultimate guide), Daniel leaves the cost set to 0.02 ether despite deploying it later on the polygon network. As he explains, "ether" just make it to be readable. I have three questions regarding this:

  1. Does this mean I can set the cost in WEI without adding "ether" to it?
  2. Is there any other unit besides "ether" that can be used instead as a unit in this contract? (for example "matic")
  3. At one point during his tutorial when deploying on polygon, he says (I'm paraphrasing) the cost (0.02 ether) is very low considering it will be deployed on polygon. Does this mean 0.02 ether represents matic token now that it is deployed on polygon despite it saying 0.02 ether?
vivemateo commented 2 years ago

I'm at the same point and hope you receive an answer before I finally deploy on polygon.

avdean commented 2 years ago

From what I know, in Solidity programming the term "Ether" is just the unit of currency. As with all EVM compatible cheering, even though your programming with "ether" it would be the currency of that chain.

In this case 0.02 ether, would translate to 0.02 Matic once deployed.

bettyboomy commented 2 years ago

I'm at the same point, please someone can confirm? did you deploy in polygon? @ElDla @vivemateo