Zilliqa / scilla

Scilla - A Smart Contract Intermediate Level Language
https://scilla-lang.org
GNU General Public License v3.0
241 stars 78 forks source link

Remote read of contract parameters #1035

Open jjcnn opened 3 years ago

jjcnn commented 3 years ago

We currently only support remote reads of the mutable state of a contract, but not of the immutable state (the contract parameters).

To support this we need the following:

anton-trunov commented 2 years ago

Resolving this issue would simplify contract auditing. As of now contract writers create read-only contract fields initialized with immutable contract parameters to be able to read those. And the dead code detector reports these fields in warning which can be distracting from actual errors when the contract author forgot to put in code that updates a field.

anton-trunov commented 2 years ago

This has been asked to be implemented by some users. CC @chetan-zilliqa

jjcnn commented 2 years ago

Moving this to v0.14. It's an important issue, but because of the integration with the state database we won't have time to do it in time for v0.13.