Lesson 3 confusion #1343
-
What is the difference between these two?
and
One is wrapped in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@r3lik Can you mention the time stamp where you saw that? Because there is a mistake, maybe you have misinterpreted it. The first line should be like this: |
Beta Was this translation helpful? Give feedback.
-
The only difference is that in the second one, we are typing-casting (or conversion) the simpleStorageArray to a SimpleStorage type. Hope this helps. |
Beta Was this translation helpful? Give feedback.
@r3lik Can you mention the time stamp where you saw that? Because there is a mistake, maybe you have misinterpreted it. The first line should be like this:
SimpleStorage simpleStorage = SimpleStorage(address(simpleStorageArray[_simpleStorageIndex]))