Skip to content

v0.99.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 04 Feb 20:44
· 11 commits to master since this release
01375ce

Summary

In this release, we:

  • Upgraded forc to 0.66.6
  • Upgraded fuel-core to 0.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 from provider.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 to assets.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 to getTransactionCost functions to reduce possible network calls

Breaking


Features

Fixes

Chores


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 from fuels.
// before
import { ContractUtils } from 'fuels';
// after
import { getContractRoot, getContractStorageRoot, getContractId, hexlifyWithPrefix } from 'fuels';