aionnetwork / aion-docs

Documentation for the Aion Network.
MIT License
9 stars 8 forks source link

Uncontrive (v) examples of static variable usage #62

Open fulldecent opened 5 years ago

fulldecent commented 5 years ago

The example at https://docs.aion.network/docs/deployment-initialization shows static variables being used in a contract. The names are myString and intArray which are unhelpful to understand the circumstances when a developer should consider choosing static storage (versus key-value storage).

Further, there may be a conflict with the circumstances where documentation recommends to use static variables and actual best practice. Related: https://github.com/aionnetwork/AVM/issues/402