Skip to content

Commit

Permalink
🚑️ Fix entity type check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed May 12, 2024
1 parent ad2d510 commit 542f0d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electrumx/server/block_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3137,9 +3137,9 @@ def create_or_delete_subname_payment_output_if_valid(self, tx_hash, tx, tx_num,
return None, False
# Make sure the payment type for the right type subrealm or dmitem is correct
if entity_type == 'subrealm' and db_prefix != b'spay':
return tx_hash, False
return None, False
if entity_type == 'dmitem' and db_prefix != b'dmpay':
return tx_hash, False
return None, False

# Rebuild the blueprint builder here
blueprint_builder = AtomicalsTransferBlueprintBuilder(self.logger, atomicals_spent_at_inputs, operations_found_at_inputs, tx_hash, tx, self.get_atomicals_id_mint_info, self.is_dmint_activated(height))
Expand Down

0 comments on commit 542f0d6

Please sign in to comment.