Re:Understanding Ethereum Smart Contracts
by dsr_ on Wednesday November 29, 2017 @06:42AM
(#15806097)
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.
[ Parent
| on HN ]
Re:Understanding Ethereum Smart Contracts
by decentralised on Wednesday November 29, 2017 @06:57AM
(#15806149)
The constructor function is only called on deployment so the counter will increase with each new call.
Re:Understanding Ethereum Smart Contracts
by alvarosevilla95 on Wednesday November 29, 2017 @07:23AM
(#15806246)
If I'm not mistaken in Solidity constructors can only be called once on a contract
Re:Understanding Ethereum Smart Contracts
by cratering on Wednesday November 29, 2017 @01:06PM
(#15809197)
Yes that is correct http://solidity.readthedocs.io/en/develop/contracts.html#cre...