spacemeshos / svm

SVM - Spacemesh Virtual Machine
https://spacemesh.io
MIT License
85 stars 14 forks source link

`Deploy Template` - Validate the existence of an `Immutable Storage Section` #472

Open YaronWittenstein opened 2 years ago

YaronWittenstein commented 2 years ago

To simplify significantly the implementation of the Immutable Storage, I suggest enforcing these rules upon each Template:

This issue extends the code under Runtime::validate_deploy to assert the above https://github.com/spacemeshos/svm/blob/6edb73de199fafce0953f82af061ca1090ff911c/crates/runtime/src/runtime/runtime.rs#L521