Closed yeqbfgxjiq closed 5 years ago
It's the later, but the only relevant thing is the value being a constant
. If you see in the contract every constant value is set right away.
You can see an example in Aragon voting app here also
Awesome. Thanks for explaining that
Reading through the Aragon docs and came across the initialization section. It seems to say that global variables in apps must be initialized within the
initialize()
function, but if they are simply initialized globally they will be discarded.On line 32 of
Lock.sol
we setWHOLE_GRIEFING
to100
, but do not initialize it in theinitialize()
function.Do we need to initialize
WHOLE_GRIEFING
in theinitialize()
function along with the other global variables? Or is this irrelevant becauseWHOLE_GRIEFING
is aprivate constant
?