Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mutability declaration to example, for #3379 #3431

Merged
merged 2 commits into from
Jan 29, 2018
Merged

Add mutability declaration to example, for #3379 #3431

merged 2 commits into from
Jan 29, 2018

Conversation

fulldecent
Copy link
Contributor

No description provided.

function sam(bytes name, bool z, uint[] data) public {}
function bar(bytes3[2]) public pure {}
function baz(uint32 x, bool y) public pure returns (bool r) { r = x > 32 || y; }
function sam(bytes name, bool z, uint[] data) public pure {name=name; z=z; data=data;}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you add name = name; ... to remove the "unused parameter" warning? The recommended way to remove that wouldbe to remove the name of the parameter as you have done for the bar function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chriseth Thank you corrected in 1cc31ba

@chriseth chriseth merged commit bd3692f into ethereum:develop Jan 29, 2018
@fulldecent fulldecent deleted the patch-7 branch January 29, 2018 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants