3 ms·
I am particularly amused that in the first example, a simple counter, no mention is made of the initialization routine being callable at any point... at which t
by dsr_ 9y ago
I am particularly amused that in the first example, a simple counter, no mention is made of the initialization routine being callable at any point... at which time the counter is reset to zero.
- decentralised 9y agoThe constructor function is only called on deployment so the counter will increase with each new call.
- alvarosevilla95 9y agoIf I'm not mistaken in Solidity constructors can only be called once on a contract
- cratering 9y agoYes that is correct http://solidity.readthedocs.io/en/develop/contracts.html#creating-contracts http://solidity.readthedocs.io/en/develop/contracts.html#cre...