简体   繁体   English

我应该怎么做才能解决这个错误?

[英]what should i do to solve this error in solidity?

I'm doing my coding in solidity while coding, I'm getting this error as follow;我在编码时正在可靠地进行编码,我收到如下错误;

这是我得到的错误

at the highlighted line I got the problem.在突出显示的行,我遇到了问题。

这是代码

Kindly let me know what to do.请让我知道该怎么做。

Is it an error, or just a warning?这是一个错误,还是只是一个警告? From the looks of it, you've just created a variable that you do not use.从外观上看,您刚刚创建了一个您不使用的变量。 And the program is letting you know through this warning.该程序通过此警告让您知道。

Warnings are technically harmless, and they shouldn't prevent your program from running, but the warning does reminds you about this unused line in case you're missing something out.警告在技术上是无害的,它们不应阻止您的程序运行,但警告确实会提醒您这条未使用的行,以防您遗漏某些内容。 If that's not the case, you can either ignore it or delete that line of code.如果不是这种情况,您可以忽略它或删除该行代码。

It is possible that the program will already give you warnings before you've even finished your bit of code.有可能程序甚至在您完成您的代码之前就已经给您警告了。 That behaviour is normal, as they like to be pre-cautious.这种行为很正常,因为他们喜欢未雨绸缪。 In that case, you can just ignore it and continue your coding until the variable is used, then the warning will disappear on it's own.在这种情况下,您可以忽略它并继续您的编码,直到使用该变量,然后警告将自行消失。

i think you just activated auto compiled我想你刚刚激活了自动编译

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM