require(msg.value >= 10, "Not enough ETH sent; check price!");
This require statement requires that the payable function receive at least 10 wei, else the function will fail and revert. The msg.value parameter is the ETH value of amount sent in alongside the mint function.
Типа вобще хз че не работет