Skip to content

v0.93.0

Compare
Choose a tag to compare
@fuel-service-user fuel-service-user released this 30 Jul 14:20
· 265 commits to master since this release
bd1cbd9

Summary

In this release, we:

  • Limited deployment to contracts up to 100kb
  • Remove the awaitExecution flag and its associated functionality
  • Upgraded forc to v0.62.0
  • Refactored getTransactionCost method for Provider and Account
  • Expanded our documentation for connectors

Breaking


Features

Fixes

Chores

Docs


Migration Notes

Features

#2796 - Deploy contract validation

ErrorCode.INVALID_TRANSACTION_TYPE was migrated to ErrorCode.UNSUPPORTED_TRANSACTION_TYPE.

// before
const code = ErrorCode.INVALID_TRANSACTION_TYPE;
// after
const code = ErrorCode.UNSUPPORTED_TRANSACTION_TYPE;

Chores

#2820 - Remove awaitExecution functionality

It is no longer possible to submit transactions using the awaitExecution flag and wait for the transaction to be processed at submission:

// before
const response = await account.sendTransaction(transactionRequest, { awaitExecution: true }); 
// after
const submit = await account.sendTransaction(transactionRequest);

const response = await submit.waitForResult();

#2643 - Refactored the getTransactionCost method

Refactored functionality for Provider.getTransactionCost to Account.getTransactionCost and changed estimation parameter from quantitiesToContract to quantities.

// before
const provider = Provider.create(...);
const account = Wallet.generate({ ... }) || new Predicate(...);
const quantities: Array<CoinQuantityLike> = [
  { amount: 1000, assetId: provider.getBaseAssetId() }
];

const cost = provider.getTransactionCost(txRequest, {
  resourceOwner: account,
  quantitiesToContract: quantities,
})
// after
const provider = Provider.create(...);
const account = Wallet.generate({ ... }) || new Predicate(...);
const quantities: Array<CoinQuantityLike> = [
  { amount: 1000, assetId: provider.getBaseAssetId() }
];

const cost = account.getTransactionCost(txRequest, { quantities });