Summary
In this release, we:
- Upgraded
forc
to0.66.6
- Upgraded
fuel-core
to0.40.4
- Updated how we calculate Blob ID so that it mirrors Bytecode ID
- Introduced bytecode helpers to compute the Bytecode ID and Legacy Blob ID
- Removed
pageInfo
fromprovider.operations.getBalances
response - Fixed a de-structuring issue when calling
waitForResult
on a submitted transaction - Fixed incorrect offset usage for
Interface.decodeArguments()
function - Improved DX of the
Address
class constructor - Added methods to allow querying the Explorer Asset API
- Migrated CDN host from
cdn.fuel.network
toassets.fuel.network
- Fixed a bug where
fuels dev
would hang after a Sway compilation error - Enable
fuels
callbacks to be asynchronous - Embedded node incompatibility warnings in GQL errors
- Added
forc
tests to the template - Allowed passing
gasPrice
togetTransactionCost
functions to reduce possible network calls
Breaking
- Chores
- #3652 - Remove
pageInfo
fromgetBalances
GraphQl operations, by @Torres-ssf - #3570 - Remove
ContractUtils
namespaced export, by @danielbate
- #3652 - Remove
Features
- #3608 - Allow passing
gasPrice
togetTransactionCost
, by @danielbate - #3641 - Bytecode ID helpers, by @danielbate
- #3585 - Add
forc
tests to create fuels, by @petertonysmith94 - #3631 - Use configurable offset for blob ID, by @danielbate
- #3648 - Support Explorer Asset API, by @petertonysmith94
- #3637 - Enable
fuels
callbacks to be asynchronous, by @petertonysmith94
Fixes
- #3660 - Bind
waitForResult
inTransactionResponse
, by @danielbate - #3589 - Incorrect function coder offset usage, by @petertonysmith94
- #3643 - S3 publishing, by @mchristopher
- #3646 -
fuels dev
hangs after compilation errors, by @nedsalk - #3636 - Improve BN unsafe numbers error handling, by @Torres-ssf
Chores
- #3580 - Prepend version mismatch to GraphQL errors, by @petertonysmith94
- #3600 -
Address
constructor now accepts a range of inputs., by @petertonysmith94 - #3532 - Un-deprecated network URLs, by @petertonysmith94
- #3617 - Bump
forc
to0.66.6
, by @petertonysmith94 - #3594 - Update
amountPerCoin
prop inWalletConfig
to accept BN, by @Torres-ssf - #3619 - Organized
assets
in account package, by @petertonysmith94 - #3620 - Prevent naming collisions on typegen, by @Torres-ssf
- #3633 - Fix version resolutions, by @petertonysmith94
- #3626 - Upgrade
fuel-core
to0.40.4
, by @Torres-ssf - #3579 - Changed Tailwind config from JS to TS, by @petertonysmith94
Migration Notes
Chores
#3652 - Remove pageInfo
from getBalances
GraphQl operations
The pageInfo
field has been removed from the response of the provider.operations.getBalances
query.
// before
const { balances, pageInfo } = await provider.operations.getBalances({
first: 100,
filter: { owner: wallet.address.toB256() },
});
// after
const { balances } = await provider.operations.getBalances({
first: 100,
filter: { owner: wallet.address.toB256() },
});
The getBalances
method of the Provider class remains unchanged, as it never returned pageInfo:
// not affected
const { balances } = await provider.getBalances();
#3570 - Remove ContractUtils
namespaced export
ContractUtils
was removed and the underlying functions (getContractRoot()
,getContractStorageRoot()
,getContractId()
,hexlifyWithPrefix()
are now exported directly fromfuels
.
// before
import { ContractUtils } from 'fuels';
// after
import { getContractRoot, getContractStorageRoot, getContractId, hexlifyWithPrefix } from 'fuels';