From a467d540e6842835046531242e3ee6465848b70a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Torres?= <30977845+Torres-ssf@users.noreply.github.com> Date: Wed, 14 Aug 2024 08:40:02 -0300 Subject: [PATCH] fix: `Account.createTransfer` return type (#2926) --- .changeset/quiet-grapes-move.md | 5 +++++ packages/account/src/account.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/quiet-grapes-move.md diff --git a/.changeset/quiet-grapes-move.md b/.changeset/quiet-grapes-move.md new file mode 100644 index 00000000000..01bc28b0c33 --- /dev/null +++ b/.changeset/quiet-grapes-move.md @@ -0,0 +1,5 @@ +--- +"@fuel-ts/account": patch +--- + +fix: `Account.createTransfer` return type diff --git a/packages/account/src/account.ts b/packages/account/src/account.ts index b421e51f24e..e6636fab933 100644 --- a/packages/account/src/account.ts +++ b/packages/account/src/account.ts @@ -334,7 +334,7 @@ export class Account extends AbstractAccount { amount: BigNumberish, assetId?: BytesLike, txParams: TxParamsType = {} - ): Promise { + ): Promise { let request = new ScriptTransactionRequest(txParams); request = this.addTransfer(request, { destination, amount, assetId }); request = await this.estimateAndFundTransaction(request, txParams);