Skip to content

Update to latest fuel-core and fuel-vm #1670

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

Merged
merged 16 commits into from
Jun 12, 2025
Merged

Conversation

Dentosal
Copy link
Member

@Dentosal Dentosal commented May 26, 2025

Summary

Updates fuel-vm and fuel-core to latest versions.

Breaking Changes

Balances are now represented as u128.

Checklist

  • All changes are covered by tests (or not applicable)
  • All changes are documented (or not applicable)
  • I reviewed the entire PR myself (preferably, on GH UI)
  • I described all Breaking Changes (or there's none)

@Dentosal Dentosal added the breaking Introduces or requires breaking changes label May 26, 2025
@Dentosal Dentosal self-assigned this May 29, 2025
@hal3e
Copy link
Contributor

hal3e commented Jun 2, 2025

The CI is failing because the e2e project can not download the x86_64-unknown-linux-gnu.tar.gz asset from the fuel-core v0.44.0 release. Is is missing.

@Dentosal Dentosal marked this pull request as ready for review June 5, 2025 16:21
@Dentosal Dentosal requested a review from a team as a code owner June 5, 2025 16:21
@Dentosal Dentosal marked this pull request as draft June 5, 2025 16:32
@zees-dev zees-dev marked this pull request as ready for review June 11, 2025 02:49
@Dentosal Dentosal requested a review from zees-dev June 12, 2025 05:41
Copy link
Contributor

@zees-dev zees-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Dentosal Dentosal merged commit 5d860ff into master Jun 12, 2025
85 checks passed
@Dentosal Dentosal deleted the dento/fuel-core-v0.44.0 branch June 12, 2025 09:10
@Dentosal Dentosal mentioned this pull request Jun 12, 2025
4 tasks
zees-dev added a commit to FuelLabs/forc-wallet that referenced this pull request Jun 12, 2025
Note: Requires merging of FuelLabs/fuels-rs#1670
^ then a release is required - after which we can then update the
`fuels-rs` dependency
^ this PR has been developed by locally pointing `fuels-rs` to PR branch
above

## Description

This pull request introduces several updates to modernize the codebase,
simplify address handling, and improve maintainability.
Key changes include upgrading the Rust version and edition, removing
support for `Bech32` addresses, and refactoring related logic and tests
to use the `Address` type consistently.
- primary changes to Bech32 address removal are due to this pr:
FuelLabs/fuels-rs#1669

### Environment and Configuration Updates:
* Updated the Rust version to `1.85.0` in `.github/workflows/ci.yml` and
`rust-toolchain.toml` to ensure compatibility with the latest features.
[[1]](diffhunk://#diff-b803fcb7f17ed9235f1e5cb1fcd2f5d3b2838429d4368ae4c57ce4436577f03fL15-R15)
[[2]](diffhunk://#diff-2b1bde2cf3a858b7bf7424cb8bcbf01f35b94dc80b925d9432cbab3319ca9b4eL3-R3)
* Changed the Rust edition to `2024` in `Cargo.toml` for access to new
language features.

### Address Handling Simplifications:
* Removed support for Bech32 addresses and replaced all instances with
the `Address` type across the codebase, including CLI commands, caching,
and transfer logic.
[[1]](diffhunk://#diff-24f1b99fe644657495a289a0eacb2189c4aa3d51dd1f39253c667c424ba4ca96L101-R94)
[[2]](diffhunk://#diff-24f1b99fe644657495a289a0eacb2189c4aa3d51dd1f39253c667c424ba4ca96L215-L221)
[[3]](diffhunk://#diff-24f1b99fe644657495a289a0eacb2189c4aa3d51dd1f39253c667c424ba4ca96L528-R450)
* Eliminated the `To` enum and related parsing logic for Bech32 and hex
addresses, simplifying address validation and usage.

### Code Refactoring:
* Refactored functions to remove unnecessary conversions between Bech32
and `Address` types, reducing complexity in methods like
`print_accounts_cli`, `transfer_cli`, and
`verify_address_and_update_cache`.
[[1]](diffhunk://#diff-24f1b99fe644657495a289a0eacb2189c4aa3d51dd1f39253c667c424ba4ca96L304-R255)
[[2]](diffhunk://#diff-24f1b99fe644657495a289a0eacb2189c4aa3d51dd1f39253c667c424ba4ca96L528-R450)
[[3]](diffhunk://#diff-24f1b99fe644657495a289a0eacb2189c4aa3d51dd1f39253c667c424ba4ca96L612-R518)
* Updated test cases to align with the new `Address` type, removing
Bech32-related assertions and ensuring compatibility with hex-based
addresses.
[[1]](diffhunk://#diff-24f1b99fe644657495a289a0eacb2189c4aa3d51dd1f39253c667c424ba4ca96L679-R589)
[[2]](diffhunk://#diff-24f1b99fe644657495a289a0eacb2189c4aa3d51dd1f39253c667c424ba4ca96L701-R611)

### Dependency and Import Cleanup:
* Reorganized imports in `src/account.rs` and `src/balance.rs` to remove
unused dependencies and improve readability.
[[1]](diffhunk://#diff-24f1b99fe644657495a289a0eacb2189c4aa3d51dd1f39253c667c424ba4ca96L6-L27)
[[2]](diffhunk://#diff-01340666501d0dc6f96a6ea7a2d24d1d17a0ae1e499ca3cf32d2615a454353ceR2-R14)

### Documentation Adjustments:
* Updated comments and type aliases to reflect the transition from
Bech32 to `Address`, ensuring clarity in the codebase.

---------

Co-authored-by: z <zees-dev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Introduces or requires breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants