-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use max fee policy to charge user (#685)
* refactor hard-to-read function * WIP * Remove comments * Remove fee checks, fmt * Remove `gas_price` from check * Get tests compiling but not passing * Replace limit tests with exists tests * Break down `create` tests, fix those tests * Break down `script` tests, fix those tests * Fix broken tx tests * Fix warnings * Fix `run_script` to incude `max_fee` * WIP * WIP * Take ref and clone instead of mut in finalize * Modify test builder to have default max_fee_limit of 0 * Fix input tests * WIP fixing tests * Finish reconciling merge * Fix `blockchain` tests * Fix setup function for many tests * Fix metadata tests * Fix predicate tests * Fix interpreter tests * Fix a bunch of simpler tests * cargo +nightly fmt * Add `Immutable` type for txs * Fix more tests * Add comments to `Immutable` * Remove setting of the max limit everywhere and removed unsuded variables * WIP * Something else * Fixed the test `into_checked__tx_fails_when_provided_fees_dont_cover_byte_costs` * Minimized number of modifications * Added getter for the `gas_price` * Fixed several tests * Fix more tests * Use `Immutable` in transact * Fix warnings * Rename types and functions * Update CHANGELOG * Appease Clippy-sama * Fix bad import * Revert "Rename types and functions" This reverts commit 25f4412. * Rename `Immutable` to `Ready` * Add test for verifying `Ready` txs * Update CHANGELOG.md Co-authored-by: Brandon Kite <brandonkite92@gmail.com> * Improve tests, change `decompose` method * Add `deploy` test for checking `Ready` * Use `CheckError` instead of the `TransactionValidity` * Updated CHANGELOG.md --------- Co-authored-by: xgreenx <xgreenx9999@gmail.com> Co-authored-by: Brandon Kite <brandonkite92@gmail.com>
- Loading branch information
1 parent
3ff9965
commit 5d4f9fe
Showing
41 changed files
with
1,139 additions
and
722 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
Oops, something went wrong.