Hey guys, I am building a NFT contract

A quick question, for the NFT contract I want every nft to cost a fixed value, so will I need to add a require saying msg.value == 0.2 eth or something, and where should this money be transferred, like should there be another address like dao / gov address, or to the contract it self?

Jan 12, 2022, 4:21 AM
it's up to you. a contract can hold the money, or you can send the money to another address.
Jan 12, 2022, 4:24 AM
okay and will msg.value always be native currency?
Jan 12, 2022, 4:25 AM
yes
Jan 12, 2022, 4:25 AM
or it can be any currency ?
Okay okay
Jan 12, 2022, 4:25 AM

© 2024 Draquery.com All rights reserved.