Replies: 2 comments 4 replies
-
@solarwhale because you are assigning a string to an address. address playerOne = "0xf39Fd6e51aad23F6F4cd6aB9927279cggFb91166"; remove the quotes and try again. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I removed the quotes but still there is error. I think there is something wrong with the address then I changed it to msg.sender but now the error is in the last line
it gives "ParserError: Expected identifier but got '=' |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I am trying to understand mapping.
I got the code from a website below:
https://www.devtwins.com/blog/understanding-mapping-vs-array-in-solidity
When I tried to compile, I get an error. I do not understand why there is an error.
Does anyone know?
Beta Was this translation helpful? Give feedback.
All reactions