Arachnid / solidity-stringutils

Basic string utilities for Solidity
Apache License 2.0
1.14k stars 373 forks source link

Mark eligible functions as pure/view #19

Open darob3rt opened 7 years ago

darob3rt commented 7 years ago

Nearly all of the string utility functions can be declared as view or even pure, since they do not modify any state but only meddle with the arguments passed to them.

Please add these keywords where possible in order to enable users to keep their functions declared as view or pure without the compiler complaining that one of the called methods in the function may modify the state.

axic commented 6 years ago

Fixed by #25.