chrisdotn / jsmnSol

A JSON parser for solidity
MIT License
137 stars 30 forks source link

Updated JsmnSolLib to Solditiy 0.4.23 #9

Closed shujahm closed 6 years ago

shujahm commented 6 years ago

Use of var was deprecated post Solidity v0.4.20. So updated the core library along with one test case. The idea was to make the library compatible with latest solidity version. I have successfully updated it be compatible with Solidity v0.4.23. So would appreciate if you can accept the merge request and if you want I can help to update the rest of the test cases as well.

shujahm commented 6 years ago

I have fixed and update one more change in the migration:

defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.