You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, to deploy a contract with storage slots we use key/value pairs that is generated from Sway. This is very cumbersome for the end user to be able to decipher which storage they are initialising.
Summary
Currently, to deploy a contract with storage slots we use key/value pairs that is generated from Sway. This is very cumbersome for the end user to be able to decipher which storage they are initialising.
For example:
Solution
We can calculate the keys for storage slots using the following computation (ref):
This should allow us to pass in an object to the storage slots and dynamically build out the storage slots which will be passed to the contract:
The text was updated successfully, but these errors were encountered: