Remix部署契约时遇到的几个错误与解决方法

qq_11661893 11 0 PDF 2021-01-15 22:01:25

常见错误: Error encoding arguments: Error: invalid bytes32 value (arg=””, coderType=“bytes32”, value=“0x6c”, version=4.0.37) 原因:因为新版本remix要求,如果指定了参数的类型为bytes32,那么你就必须在输入参数的值的时候,该值也必须是32 bytes的。 SyntaxError: Functions are not allowed to have the same name as the contract. If you intend this to be a const

用户评论
请输入评论内容
评分:
暂无评论