简体   繁体   中英

ERC721 Contract: 1 ether = 1 token for network deployed on?

I am new to Solidity and looking over an ERC721 NFT contract.

I see in the code they set variables of prices to things like uint256 public MINT_PRICE = 1.5 ether; .

Does this mean that the price would be 1.5 of AVAX if were deploying this contract onto the Avalanche network whose base token is AVAX?

Thanks!

calculations are done in the base units for a token.

   uint256 public MINT_PRICE = 1.5 avax;

People uses "ether" for placeholder

Note that gas fees are always paid in "ether" if your contract is on ethereum.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM