deleted post - Hole
Hey @Mick_code
you can do it in this way:
function purchase(uint256 numOfNft) external payable {
require(msg.value == 0.0005 ether, "Fee not met");
// add mint logic
...
payable(feeRecipientAddress).transfer(msg.value);
}
deleted post - Hole
The code I wrote must be adapted to your code.
You have to define the feeRecipientAddress variable, maybe adding a setter function too, plus some other stuffs