Your_First_Decentralized_Application_Python icon indicating copy to clipboard operation
Your_First_Decentralized_Application_Python copied to clipboard

Implement easysolc for solc v0.5.x support

Open ghost opened this issue 5 years ago • 0 comments

Hey, I've re-created your Flask app using easysolc instead of solc-py as that seems to be deprecated(?) and does not support solc v0.5.0+.

Additionally, solc v0.5.x had a breaking change which requires explicit data location for all variables of struct, array or mapping types. This was included in the new .sol file.

In order to preserve your work, I did this as a separate .py and .sol file. Let me know if you'd like me to structure this differently. I figure it's probably best to either support both options through a command line argument, or keep them as separate repositories. Wanted to run it by you for your preference first. Let me know.

These changes haven't yet been documented in the README. I added one item to the README, that is just a reminder to install solc with a link to the docs because I forgot the first time I ran this. Pending you're feedback, I'll add my work to the README.

Cheers!

ghost avatar Jun 19 '19 04:06 ghost