From 9e21613070435908fd577b5f6c6cf3259c7e1058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Torres?= <30977845+Torres-ssf@users.noreply.github.com> Date: Tue, 13 Aug 2024 11:06:39 -0300 Subject: [PATCH 1/2] fix return type for createTransfer --- packages/account/src/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/account/src/account.ts b/packages/account/src/account.ts index af198d012fa..a5f1e076254 100644 --- a/packages/account/src/account.ts +++ b/packages/account/src/account.ts @@ -320,7 +320,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); From 048fd4f4c327bcb9977655e4d3610b37b273e0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Torres?= <30977845+Torres-ssf@users.noreply.github.com> Date: Tue, 13 Aug 2024 11:07:28 -0300 Subject: [PATCH 2/2] add changeset --- .changeset/quiet-grapes-move.md | 5 +++++ 1 file changed, 5 insertions(+) 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