Skip to content

v0.24.0

Latest
Compare
Choose a tag to compare
@bitzoic bitzoic released this 02 Sep 03:14
e19f96f

What's Changed

Added v0.24.0

  • #293 Adds the BytecodeRoot and ContractConfigurables 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 the amount argument is zero.
  • #289 Bumps Sway-Libs to forc v0.63.3, fuel-core v0.34.0, and fuels v0.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 take storage.proxy_owner as a parameter. Instead they directly read and write to the storage slot 0xbb79927b15d9259ea316f2ecb2297d6cc8851888a98278c0a2e03e1a091ea754 which is sha256("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