Skip to content

Add mutability declaration to example, for #3379#3431

Merged
chriseth merged 2 commits intoargotorg:developfrom
fulldecent:patch-7
Jan 29, 2018
Merged

Add mutability declaration to example, for #3379#3431
chriseth merged 2 commits intoargotorg:developfrom
fulldecent:patch-7

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 argotorg: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