chiru-labs / ERC721A

https://ERC721A.org
MIT License
2.51k stars 842 forks source link

We were not able to estimate gas. There might be an error in the contract and this transaction may fail #465

Closed bunthoeunstable closed 1 year ago

bunthoeunstable commented 1 year ago

hello, please core team help check. testnet working, but on mainnet is not work

https://etherscan.io/address/0x24288d6332f800282eE0538d044dcaA3A8786Aaf#writeContract

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);
}