getConversionRate(uint256 ethAmount) - no underscore? #195
Answered
by
coinfeigm
amanbthakkar
asked this question in
Q&A
-
At 4:15:59 in the video, there is no underscore for the function parameter. Is that just missing, or if a function is being internally called is an underscore not required? |
Beta Was this translation helpful? Give feedback.
Answered by
coinfeigm
Jun 8, 2022
Replies: 1 comment 2 replies
-
The underscores in the beginning of the tutorial is just used to differentiate the local variables to state variables (assuming you want them to be the same name), it does not matter how you name it. The state variable declaration: The function declaration:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
amanbthakkar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The underscores in the beginning of the tutorial is just used to differentiate the local variables to state variables (assuming you want them to be the same name), it does not matter how you name it.
The state variable declaration:
uint256 name;
The function declaration: