Tags: FuelLabs/forc-wallet
Tags
upd forc-tracing 0.67.0 -> 0.68.8 (#246) ## Description This pull request includes a version update for the `forc-tracing` dependency in the `Cargo.toml` file. * [`Cargo.toml`](diffhunk://#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542L14-R14): Updated the `forc-tracing` dependency from version `0.67` to `0.68`. --------- Co-authored-by: z <[email protected]>
update fuels-rs (#245) 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 <[email protected]>
refac: Update fuels and other dependencies (#236) The key changes are: - `WalletUnlocked` changes to `Wallet<Unlocked<S>>` - `Provider` is now required to unlock a wallet, so I added `--node-url` as an option at the top level of the CLI so it can be set for any of the operations. Removed it from the subcommands. - Introduced `CliContext` containing the wallet_path and node_url since they have to get passed around in many places - Added a more thorough unit test of `derive_account_unlocked` that uses a mock Provider Closes #226
PreviousNext