The upgradeability lib has been updated to use a specific storage slot for the proxy owner
The upgradeability example has been updated to use a specific storage slot for the proxy owner
The upgradeability test contract has been updated to use a specific storage slot for the proxy owner
Notes
The _proxy_owner(), only_proxy_owner() and _set_proxy_owner() functions no longer take storage.proxy_owner as a parameter. Instead they directly read and write to the storage slot 0xbb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea754 which is sha256("storage_SRC14_1").
Related Issues
Closes #287
Checklist
[x] I have linked to any relevant issues.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have updated the documentation where relevant (API docs, the reference, and the Sway book).
Type of change
Changes
The following changes have been made:
Notes
The
_proxy_owner()
,only_proxy_owner()
and_set_proxy_owner()
functions no longer takestorage.proxy_owner
as a parameter. Instead they directly read and write to the storage slot0xbb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea754
which issha256("storage_SRC14_1")
.Related Issues
Closes #287
Checklist
Breaking*
orNew Feature
labels where relevant.