What's Changed
Added v0.24.0
- #293 Adds the
BytecodeRoot
andContractConfigurables
types to the Bytecode Library. - #286 Adds the
_metadata()
function to the Asset Library.
Changed v0.24.0
- #286 Updates the repository to Sway-Standards v0.6.0 and implements the new SRC-20 and SRC-7 logging specifications.
- #286
_set_metadata()
,_set_name()
and_set_symbol()
now revert if the metadata is an empty string. - #286
_set_metadata()
now reverts if the metadata is empty bytes. - #286
_mint()
and_burn()
now revert if theamount
argument is zero. - #289 Bumps Sway-Libs to forc
v0.63.3
, fuel-corev0.34.0
, and fuelsv0.66.2
. - #290 Update the Upgradeability library to use a specific storage slot for owner functionality.
- #291 Prepares for the
v0.24.0
release.
Breaking v0.24.0
- #290 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")
.
Before:
fn foo() {
let stored_proxy_owner = _proxy_owner(storage.proxy_owner);
only_proxy_owner(storage.proxy_owner);
_set_proxy_owner(new_proxy_owner, storage.proxy_owner);
}
After:
fn foo() {
let stored_proxy_owner = _proxy_owner();
only_proxy_owner();
_set_proxy_owner(new_proxy_owner);
}
Full Changelog: v0.23.0...v0.24.0