Skip to content

Commit

Permalink
fix: Account.createTransfer return type (#2926)
Browse files Browse the repository at this point in the history
  • Loading branch information
Torres-ssf authored Aug 14, 2024
1 parent 03ac550 commit a467d54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/quiet-grapes-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/account": patch
---

fix: `Account.createTransfer` return type
2 changes: 1 addition & 1 deletion packages/account/src/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export class Account extends AbstractAccount {
amount: BigNumberish,
assetId?: BytesLike,
txParams: TxParamsType = {}
): Promise<TransactionRequest> {
): Promise<ScriptTransactionRequest> {
let request = new ScriptTransactionRequest(txParams);
request = this.addTransfer(request, { destination, amount, assetId });
request = await this.estimateAndFundTransaction(request, txParams);
Expand Down

0 comments on commit a467d54

Please sign in to comment.