Replies: 2 comments 1 reply
-
I don't understand what does it change having it in a datastore or in the bytecode directly. I think something good that could be made would be to improve tooling so that we can use a CLI to upload our SC or website without having to create a wrapper SC and be more similar with other blockchains. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Multiple Massa partners have expressed the need.for this feature. Prioritizing it soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
RFC: Operation datastore
Currently, to deploy smart contracts, we need to store their bytecode inside another smart contract bytecode which might be suboptimal.
Same for websites etc... and arbitrary data, used for example to initialize the datastore of an SC being created.
We propose adding a
op_datastore: HashMap<Hash, Vec<u8>>
field to theExecuteSC
andCallSC
operations, allowing the caller to inject data in the operation that can be accessed by the executed smart contract through a specializedop_data_get(key) -> Vec<u8>
ABIHere are some use cases:
Beta Was this translation helpful? Give feedback.
All reactions