Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix transaction_type field #2901

Merged
merged 2 commits into from
Jan 5, 2025
Merged

Fix transaction_type field #2901

merged 2 commits into from
Jan 5, 2025

Conversation

ouziel-slama
Copy link
Contributor

@ouziel-slama ouziel-slama commented Jan 4, 2025

  • Double-check the spelling and grammar of all strings, code comments, etc.
  • Double-check that all code is deterministic that needs to be
  • Add tests to cover any new or revised logic
  • Ensure that the test suite passes
  • Update the project release notes
  • Update the project documentation, as appropriate, with a corresponding Pull Request in the Documentation repository

@ouziel-slama ouziel-slama marked this pull request as draft January 4, 2025 16:30
@@ -44,7 +44,7 @@
return (message_type_id, message_remainder)


def get_transaction_type(data: bytes, destination: str, block_index: int):
def get_transaction_type(data: bytes, destination: str, utxos_info: list, block_index: int):

Check warning

Code scanning / pylint

Too many return statements (10/6). Warning

Too many return statements (10/6).
return "utxomove"
if block_index >= util.get_change_block_index("dispensers"):
if (
destination != config.UNSPENDABLE

Check warning

Code scanning / pylint

Simplify chained comparison between the operands. Warning

Simplify chained comparison between the operands.
@ouziel-slama ouziel-slama marked this pull request as ready for review January 4, 2025 21:37
@ouziel-slama ouziel-slama merged commit bdd5f71 into develop Jan 5, 2025
19 checks passed
@ouziel-slama ouziel-slama deleted the fixes branch January 5, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants