CORIONplatform / solidity

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

prodiverDB: setProviderCounter(..) function #144

Closed gundas closed 7 years ago

gundas commented 7 years ago

providerCounter is an internal variable used to keep track of the providers mapping. Allowing to externally set the value of providerCounter (via the setProviderCounter(...) function) could mess-up the internal state of the providerDB. For example if due to some mistake the providerCounter is set to a lower value, the next openProvider(...) function call would overwrite some other provider.

I think the setter function for providerCounter should be removed (it is not used anyway).

iFA88 commented 7 years ago

Right!