简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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