DeclarationError: Undeclared identifier error when using sendValue()

The error message is similar but your problem is completely unrelated to this thread. It would have been better to create a new one.

Also, please read How do I ask a good question? before posting, especially this part:

  • DO NOT post images of code, data, error messages, etc. - copy or type the text into the question. Please reserve the use of images for diagrams or demonstrating rendering bugs, things that are impossible to describe accurately via text. For more information please see the Meta FAQ entry Why not upload images of code/errors when asking a question?

As to your problem, the screenshot is a bit hard to read but it looks like the issue is exactly what the compiler is telling you: you have not declared prime and pwc anywhere. Were they meant to be the constructor parameters?

And you have one more bug in there, though this one does not result in an error: you're assigning the values to name and symbol which are constructor parameters. This has no effect on the state of the contract. You probably meant _name and _symbol state variables?

2 Likes