Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert remove _with_configurables functions from Bytecode Library and use Option instead #293

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

bitzoic
Copy link
Member

@bitzoic bitzoic commented Aug 30, 2024

Type of change

  • Improvement (refactoring, restructuring repository, cleaning tech debt, ...)

Changes

The following changes have been made:

Checklist

  • I have linked to any relevant issues.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation where relevant (API docs, the reference, and the Sway book).
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.
  • I have updated the changelog to reflect the changes on this PR.

@bitzoic bitzoic added the Bytecode Solver Label used to filter for the library issue label Aug 30, 2024
@bitzoic bitzoic self-assigned this Aug 30, 2024
@bitzoic bitzoic requested a review from a team as a code owner August 30, 2024 13:14
@K1-R1 K1-R1 requested a review from a team August 30, 2024 13:21
@bitzoic bitzoic merged commit 93cfa35 into master Aug 30, 2024
10 checks passed
@bitzoic bitzoic deleted the bitzoic-undo-bytecode branch August 30, 2024 13:43
@bitzoic bitzoic mentioned this pull request Aug 30, 2024
bitzoic added a commit that referenced this pull request Sep 2, 2024
## Type of change

<!--Delete points that do not apply-->

- Release

## [Version 0.24.0]

### Added v0.24.0

- [#293](#293) Adds the
`BytecodeRoot` and `ContractConfigurables` types to the Bytecode
Library.
- [#286](#286) Adds the
`_metadata()` function to the Asset Library.

### Changed v0.24.0

- [#286](#286) Updates the
repository to Sway-Standards v0.6.0 and implements the new SRC-20 and
SRC-7 logging specifications.
- [#286](#286)
`_set_metadata()`, `_set_name()` and `_set_symbol()` now revert if the
metadata is an empty string.
- [#286](#286)
`_set_metadata()` now reverts if the metadata is empty bytes.
- [#286](#286) `_mint()` and
`_burn()` now revert if the `amount` argument is zero.
- [#289](#289) Bumps Sway-Libs
to forc `v0.63.3`, fuel-core `v0.34.0`, and fuels `v0.66.2`.
- [#290](#290) Update the
Upgradeability library to use a specific storage slot for owner
functionality.
- [#291](#291) Prepares for
the `v0.24.0` release.

### Breaking v0.24.0

- [#290](#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:

```sway
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:

```sway
fn foo() {
    let stored_proxy_owner = _proxy_owner();
    only_proxy_owner();
    _set_proxy_owner(new_proxy_owner);
}
```

---------

Signed-off-by: withbest <[email protected]>
Co-authored-by: K1-R1 <[email protected]>
Co-authored-by: SwayStar123 <[email protected]>
Co-authored-by: withbest <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bytecode Solver Label used to filter for the library issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants