Skip to content

v0.100.0

Choose a tag to compare

@github-actions github-actions released this 17 Mar 22:57
· 92 commits to master since this release
a071dce

Summary

In this release, we:

  • Consider assetId on isUserAccount and getAddressType methods
  • Enabled hashing + signing of bytes via personalMessage as per EIP-191
  • Support customizing TX request from BaseInvocationScope
  • Improved JSON RPC interface between SDK and Connectors, reducing HTTP requests
  • Added the corresponding receipt to the operation in the Tx summary
  • Improved directory detection for fuels init
  • Introduced decodeScriptData to decode the the values from a contract call script
  • Merge gas price and predicate estimation on a single request
  • Adapted ResourceCache to conform with new coinsToSpend limitations
  • Upgraded fuel-core to 0.41.9
  • Upgraded fuel-core to 0.41.7
  • Made getBlockWithTransactions and getBlock supports BN parameter
  • Upgraded forc to 0.67.0
  • Upgraded forc to 0.66.7

Breaking


Features

Fixes

Chores


Migration Notes

Chores

#3697 - Made ResourceCache consider resource owner

//before
provider.cache?.getActiveData();
provider.cache?.isCached(key);
//after
const owner = wallet.address.toB256();

provider.cache?.getActiveData(owner)
provider.cache?.isCached(owner, key);

#3590 - Upgrade fuel-core to 0.41.7

Because of the latest fuel-core changes, TS SDK does not throw the following error codes and messages anymore:

  1. NOT_ENOUGH_FUNDS
// before
"The account(s) sending the transaction don't have enough funds to cover the transaction."
// after
"Insufficient funds or too many small value coins. Consider combining UTXOs."
  1. MAX_COINS_REACHED
// before
"The account retrieving coins has exceeded the maximum number of coins per asset. Please consider combining your coins into a single UTXO."
// after
"Insufficient funds or too many small value coins. Consider combining UTXOs."

Both error codes were removed in favor of INSUFFICIENT_FUNDS_OR_MAX_COINS