Skip to content

Conversation

@hbdgr
Copy link

@hbdgr hbdgr commented Sep 30, 2017

It is good to have constant modifier if function does not modify storage. However in this case, it doesn't even read any state information from storage, so it is pure.
Pure is a tightest restriction.

Since last solidity version, compiler started to warnings about this:
"SafeMath.sol:15:3: Warning: Function state mutability can be restricted to pure"

@frangio
Copy link
Contributor

frangio commented Nov 23, 2017

Thanks @hbdgr! Fixed in #573.

@frangio frangio closed this Nov 23, 2017
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.

2 participants