Parsererror ERC721
我在解决这个问题时遇到了麻烦。 从坚固性: ParserError:预期'{'但有识别符 - > Mint.Sol:1443:16: | 1443 |合同八个开国元勋是ERC721A | ^^^^^^^^
//below is my code//
line 1443 ignore this//
contract Eight Founding Fathers is ERC721A, Ownable, ReentrancyGuard {
string public baseURI;
uint public price = 0.003 ether;
uint public maxPerTx = 20;
uint public totalFree = 1000;
uint public maxSupply = 1776;
uint256 public maxFreePerWallet = 3;
bool public mintEnabled;
mapping(address => uint256) private _mintedFreeAmount;
constructor() ERC721A("8Bit Founding Fathers","8BFF"){}
I am having trouble with solving this issue.
from solidity:
ParserError: Expected '{' but got identifier
--> Mint.sol:1443:16:
|
1443 | contract Eight Founding Fathers is ERC721A, Ownable, ReentrancyGuard {
| ^^^^^^^^
//below is my code//
line 1443 ignore this//
contract Eight Founding Fathers is ERC721A, Ownable, ReentrancyGuard {
string public baseURI;
uint public price = 0.003 ether;
uint public maxPerTx = 20;
uint public totalFree = 1000;
uint public maxSupply = 1776;
uint256 public maxFreePerWallet = 3;
bool public mintEnabled;
mapping(address => uint256) private _mintedFreeAmount;
constructor() ERC721A("8Bit Founding Fathers","8BFF"){}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的智能合同名称不应在单词之间有空间。另一个问题是,对于
八FUNDINGINGFATHERS
智能合约缺少A'}'。我以这种方式调整了您的智能合同代码:
Your smart contract name shouldn't have space between words. Another issue is that missing a '}' for close
EightFoundingFathers
smart contract.I adjusted your smart contract code in this way: