Arachnid / solidity-stringutils

Basic string utilities for Solidity
Apache License 2.0
1.12k stars 369 forks source link

Mark eligible functions as pure/view #19

Open darob3rt opened 6 years ago

darob3rt commented 6 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 5 years ago

Fixed by #25.