Closed AurelienFT closed 2 months ago
@AurelienFT could you add the proper tag to the title, either chore, feat, or fix please? So the migration script can pick it upon the next release :)
@AurelienFT could you add the proper tag to the title, either chore, feat, or fix please? So the migration script can pick it upon the next release :)
Done :)
This PR is based on https://github.com/FuelLabs/fuels-rs/pull/1496
This PR can't be merged for now as it contains breaking changes and master
do not accept new breaking changes for now.
@AurelienFT Is this still a draft, or are we good to review it?
@AurelienFT Is this still a draft, or are we good to review it?
Yes sorry I placed it to draft to avoid merging before :p
Release notes
In this release, we:
get_asset_outputs_for_amount
andadjust_for_fee
fromAccount
toViewOnlyAccount
Summary
This PR moves
get_asset_outputs_for_amount
,get_asset_inputs_for_amount
andadjust_for_fee
fromAccount
toViewOnlyAccount
trait. It seem that these two methods doesn't require a fullAccount
and so it give more flexibility in order to implement them in other structures such asWallet
.Now
Wallet
also implement these two methods. Before you were forced to build aWalletUnlocked
even if you don't use thesecret_key
.Breaking changes
This contains an API breaking change as some public trait as been edited:
Breaking Changes
The provider option flag
cacheUtxo
was renamed toresourceCacheTTL
Checklist