'Gas estimation errored with the following message ... The transaction execution will likely fail?
I am trying to create my own NFT collect and getting the below erorr when compiling on Remix Ethereum.
I am using the generic TheStripesNFT solidity contract found here (https://github.com/The-Stripes-NFT/the-stripes-nft-contract/blob/main/TheStripesNFT.sol). I have only changed the parts of the contract below.
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Internal JSON-RPC error. { "code": -32000, "message": "execution reverted" }
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "contracts/access/Ownable.sol";
contract TheStripesNFT is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public baseExtension = ".json";
uint256 public cost = 0.1 ether;
uint256 public presaleCost = 0.08 ether;
uint256 public maxSupply = 40;
uint256 public maxMintAmount = 10;
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

