CORIONplatform / solidity

GNU General Public License v3.0
12 stars 9 forks source link

provider-recode code structure #140

Closed gundas closed 7 years ago

gundas commented 7 years ago

Hello,

I understand this is a matter of preference.

I think the readability of the code would improve if:

iFA88 commented 7 years ago

Hi!

I code in remix (browser solidity) if I have the providerDB in a separate file, I can not use highlighting what I use very common. Sadly the search (CTRL+F) is really buggy. BUT yes, when I'm done its nice to have in an separated file. In the provider contract I have created internal functions for each providerDB as you see. This is important to 'catch' the errors and I don't need check the success some function who I call DB function. I think, I don't have any function in the provider what I don't use, but if you find one please let me know :) The success variable is very important from an "third party" contract.