hello any one help me how can i solve this gas fee error

Sep 29, 2022, 7:18 AM
the error message says it all. the transaction is probably going to revert
Sep 29, 2022, 7:22 AM
when i try to mint then got this error
how can i solve this error
Sep 29, 2022, 8:30 AM
Show mint function
Sep 29, 2022, 8:35 AM
function awardItemPB(address player, uint256 tokenCount,bytes32 message, bytes memory sig) public payable {
require(msg.value>=tokenCount*normalPrice);
require(recoverSigner(message,sig)==pbMinter);
require(totalMint<=maxMint);
require(publicMintOpen);
for (uint256 i = 0; i < tokenCount; i++) {
uint256 newItemId = _tokenIds.current();
_tokenIds.increment();
_mint(player, newItemId);
_setTokenURI(
newItemId,
append(baseUrl, Strings.toString(newItemId + 1), ".json")
);
totalMint++;
}

}
Sep 29, 2022, 8:36 AM
1115?
Sep 29, 2022, 8:36 AM
normalPrice = 10000000000000000 wei
no
ERC721
Sep 29, 2022, 8:37 AM
Force the tx and check the error
Sep 29, 2022, 8:45 AM
ok
got this error https://ropsten.etherscan.io/tx/0x0bc587c9aa8eac421aedd3dff1362a682430eb2eedce12d3c957a7da80b89ffa
Sep 29, 2022, 9:03 AM
please use try catch on frontend.
setApprovalForAll you missed this feature
Sep 29, 2022, 9:09 AM
setApprovalForAll ? means?
Sep 29, 2022, 9:16 AM
https://anallergytoanalogy.medium.com/jumping-into-solidity-the-erc721-standard-part-4-ad21e3a5d9c
https://stackoverflow.com/questions/69854414/why-and-when-is-setapprovalforall-called
Sep 29, 2022, 9:21 AM
Reverting on that signature recovery
Sep 29, 2022, 9:23 AM
ok thanks let me check
Sep 29, 2022, 10:06 AM

© 2024 Draquery.com All rights reserved.