ParserError:预期的标识符,但得到“非法”

ParserError: Expected identifier but got 'ILLEGAL'

提问人:mikehoncho 提问时间:1/20/2023 最后编辑:halfermikehoncho 更新时间:1/21/2023 访问量:54

问:

Error: ParserError: Expected identifier but got 'ILLEGAL'
   --> 22omo.sol:560:10:
    |
560 | contract 2omo is Context, IERC20, Ownable {
    |          ^

CODE(请注意,这不是第 1 行):

contract 2omo is Context, IERC20, Ownable {

    using SafeMath for uint256;

    IUniswapV2Router02 private _uniswapV2Router;

    IERC20 private WrappedETH;
Solidity 解析错误

评论

0赞 0xSanson 1/21/2023
我不确定,但合同名称可能不能以数字开头

答: 暂无答案