refactor: Removed sign_transaction_if_paid, and now sign_transaction … #241
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…and sign_and_send_transaction will always validate price, but if the node operator sets price as FREE it will have the same behavior as the old methods
Important
Refactor to remove
signTransactionIfPaid, updatesignTransactionto handle payment validation, and adjust tests and documentation accordingly.signTransactionIfPaidmethod and logic, replace withsignTransactionhandling payment validation.signTransactionvalidates payments unless price is FREE, then behaves like old method.free_signing_tests.rs,transaction_signing.rs, and others to usesignTransaction.free_signing_tests.rs.signTransactionIfPaid.kora.tomland other config files to removesignTransactionIfPaidreferences.signTransactionis enabled in relevant test configurations.README.mdand other docs to reflect removal ofsignTransactionIfPaid.signTransactionwith new behavior.This description was created by
for 24feec7. You can customize this summary. It will automatically update as commits are pushed.
📊 Unit Test Coverage
Unit Test Coverage: 80.4%
View Detailed Coverage Report