Skip to content

getConversionRate(uint256 ethAmount) - no underscore? #195

Answered by coinfeigm
amanbthakkar asked this question in Q&A
Discussion options

You must be logged in to vote

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:

function store(uint256 _name) public { // The parameter can be named anything you want
        name = _name;
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@amanbthakkar
Comment options

@PatrickAlphaC
Comment options

Answer selected by amanbthakkar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants