forked from FuelLabs/fuels-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: reduce number of dry run calls (FuelLabs#1767)
- Loading branch information
Showing
13 changed files
with
295 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@fuel-ts/account": minor | ||
"@fuel-ts/program": minor | ||
--- | ||
|
||
- For a contract call, reduced the number of dry run calls before the call from 4 to 1 | ||
- For a contract simulation, reduced the number of dry run calls before the simulation from 3 to 1 | ||
- For a transfer from an account, reduced the number of dry run calls from 2 to 1 | ||
- Optimized predicate estimation so that there are no calls to the node if all predicates in a transaction have been estimated | ||
- `Predicate.estimateTxDependencies` now returns receipts which are used for the purposes of the optimizations mentioned above | ||
- `BaseInvocationScope.fundWithRequiredCoins` now calculates the `fee` parameter internally so it was removed from the function signature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.