我如何避免坚固的声明错误
我正在尝试在教程视频的帮助下学习区块链开发(坚固)。我对此非常新。在练习程序时有一个错误,请帮助我避免此错误。请让我知道什么是此错误的原因。
此行发生了错误:
people[] public people;
错误是,
DeclarationError: Identifier already declared.
--> smart.sol:20:5:
|
20 | people[] public people;
| ^^^^^^^^^^^^^^^^^^^^^^
Note: The previous declaration is here:
--> smart.sol:11:5:
|
11 | struct people {
| ^ (Relevant source part starts here and spans across multiple lines).
I am trying to learn blockchain developing(solidity) with the help of tutorial video.and i am very new for this.There is a error while practicing the programming,please help me to avoid this error.and please let me know what is the reason for this error.
the error occurred for this line:
people[] public people;
The error is,
DeclarationError: Identifier already declared.
--> smart.sol:20:5:
|
20 | people[] public people;
| ^^^^^^^^^^^^^^^^^^^^^^
Note: The previous declaration is here:
--> smart.sol:11:5:
|
11 | struct people {
| ^ (Relevant source part starts here and spans across multiple lines).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论