ParserError: Expected identifier, got ‘LParen’
错误原因:
合约编译器版本问题,我这里是因为编译器版本过低,与编写的合约出现矛盾
解决方法:
提高智能合约编译器的版本,我提高到0.6.0以上的版本就不会报错了。可以将合约在Remix上测试。
如果使用0.6.8版本会出现以下警告:
Warning: SPDX license identifier not provided in source file.
解决方法在这篇文章中
https://blog.youkuaiyun.com/weixin_44623594/article/details/106402550
OK