Skip to content

Commit

Permalink
fix: predicate check on estimateTxDependencies (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
luizstacio committed Jul 26, 2023
1 parent daa915c commit 9e88ff9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-students-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fuel-ts/providers": patch
---

Fix predicate check on estimateTxDependencies
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,7 @@ export abstract class BaseTransactionRequest implements BaseTransactionRequestLi
hasPredicateInput(): boolean {
return Boolean(
this.inputs.find(
(input) =>
input.type === InputType.Coin && input.predicate && input.predicate !== arrayify('0x')
(input) => 'predicate' in input && input.predicate && input.predicate !== arrayify('0x')
)
);
}
Expand Down

0 comments on commit 9e88ff9

Please sign in to comment.