-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return
PredicateVerificationFailed
error to the user (#628)
* Removed subtraction of predicate used gas from the gas limit. * Updated values of teh GTF * Implemented `Policies` structure. Updated transaction validity rules according to policies. Updated fee calculation and refund logic. * Applied change for VM. Fixed all tests. * Minor nits * Fix test in `fuel-core` * Fixed review ocmments * Update fuel-tx/src/transaction/types/create.rs Co-authored-by: Mitchell Turner <james.mitchell.turner@gmail.com> * Fixed comments from the PR. Updated CHANGELOG.md Simplified `refund` calculation logic * Added a test for refund * Apply suggestions from code review Co-authored-by: Brandon Kite <brandonkite92@gmail.com> * Renamed `GasLimit` to `ScriptGasLimit` * Update CHANGELOG.md Co-authored-by: Brandon Kite <brandonkite92@gmail.com> * Update CHANGELOG.md Co-authored-by: Brandon Kite <brandonkite92@gmail.com> * Return `PredicateVerificationFailed` error to the user * Renamed `gas_limit` to `script_gas_limit` * Renamed `gas_limit` to `script_gas_limit` * Use correct values for policies GTF * Update CHANGELOG.md * Address comments * Fix CI --------- Co-authored-by: Mitchell Turner <james.mitchell.turner@gmail.com> Co-authored-by: Brandon Kite <brandonkite92@gmail.com>
- Loading branch information
1 parent
694b636
commit 9c75006
Showing
24 changed files
with
258 additions
and
225 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
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
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.