0

I am trying to create a smart contract using the but it is showing warning message in a string

"Warning: Unused function parameter. Remove or comment out the variable name to silence this warning. uint256 initialSupply, "

enter image description here

1

The warning means what it says.

Your constructor baits the sender with three input arguments (34-36) and the sender might think those things are used.

At 38, 40 and 41 you hard code. The variables aren't used for anything. This could indicate a coding error, so the compiler is trying to warn you.

Why not say name = tokenName; instead?

Why not say totalSupply = initialSupply * 10 ...?

It would see that you're using the input for something and stop warning about a possible oversight.

Hope it helps.

  • I have removed the undefined variables but ABI encode format is not updating in the input details – naveeninet Feb 23 at 11:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.