DEV Community

Buzz Mint
Buzz Mint

Posted on

please help check my code what's is wrong ? in testnet working, but in mainnet not work

in testnet working, but in mainnet not work

function minterMint(
address to,
uint256 quantity,
address payee,
uint256 price
) external payable {

    require(maxSupply >= totalSupply() + quantity, "insufficent supply");
    require(!paused, "mint is paused");
    require(msg.value >= unitPrice * quantity, "insufficent balance");
    require(payeeAddress == payee, "invalid payee address");
    payable(payeeAddress).transfer(price);
    _mint(to, quantity);
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)