简体   繁体   English

无法解决 Solidity 错误 - ParserError: Expected ';' 但得到了“数字”-> first.sol:2:17: | 2 | Pragma 坚固性 0.8.7; | ^^^

[英]Unable to solve solidity error- ParserError: Expected ';' but got 'Number' --> first.sol:2:17: | 2 | Pragma solidity 0.8.7; | ^^^

I am using solidity programming and getting errors during compilation ParserError: Expected ';'我正在使用solidity编程并在编译期间出现错误 ParserError: Expected ';' but got 'Number' --> first.sol:2:17: |但得到了“数字”-> first.sol:2:17: | 2 | 2 | Pragma solidity 0.8.7; Pragma 坚固性 0.8.7; | | ^^^ ^^^

letter "p" of pragma should be small letter. pragma 的字母“p”应该是小写字母。

Try: pragma solidity 0.8.7;尝试:pragma solidity 0.8.7;

(instead of: Pragma solidity 0.8.7;) (而不是:Pragma solidity 0.8.7;)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 "Solidity 错误 :: ParserError: Expected ',' but got 'Number'" - Solidity Error :: ParserError: Expected ',' but got 'Number' 坚固性:ParserError:预期';' 但得到'(' - solidity: ParserError: Expected ';' but got '(' Solidity ParserError:预期的';' 但得到了“是” - Solidity ParserError: Expected ';' but got 'is' Solidity 错误:: ParserError: Expected '(' but got 'public' - Solidity Error :: ParserError: Expected '(' but got 'public' Solidity ParserError:预期的标识符,但得到了 '(' constructor() public { ^ - Solidity ParserError: Expected identifier but got '(' constuctor() public { ^ 多边形:“pragma solidity ^0.8.7”与链链接的 Solidity 构建失败 - Polygon: Solidity build failed for 'pragma solidity ^0.8.7' with chainlink SOLIDITY:[函数覆盖]:-> ParserError:预期为“{”但得到保留关键字“覆盖” - SOLIDITY : [Function Overridding] : -> ParserError: Expected '{' but got reserved keyword 'override' 得到 parsererror 我在 remix 上写 inheritance solidity 代码我得到了错误 - getting parsererror I write inheritance solidity code on remix i got error Solidity 0.8.0 中的 ParserError - ParserError in Solidity 0.8.0 采取solidity课程,我被卡住了,因为我的代码不断带来这个错误 ParserError: Function, variable, struct or modifier declaration expected - taking solidity course and i am stuck cause my code keeps bring this error ParserError: Function, variable, struct or modifier declaration expected
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM