Skip to content

Commit

Permalink
⚡️ Use Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed May 11, 2024
1 parent 0d170de commit 3ca08e1
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 @@ -2208,7 +2208,7 @@ def get_raw_mint_info_by_atomical_id_notused(self, atomical_id):
# Get the atomical details base info
# Does not retrieve the active b'a' locations in this method because there could be many thousands (in the case of FTs)
# Another method is provided to layer on the active location and gives the user control over whether to retrieve them
def get_base_mint_info_by_atomical_id(self, atomical_id, height: int = None):
def get_base_mint_info_by_atomical_id(self, atomical_id, height: Optional[int] = None):
height = height if height else self.height
init_mint_info = self.get_atomicals_id_mint_info(atomical_id, True)
if not init_mint_info:
Expand Down Expand Up @@ -2396,7 +2396,7 @@ def build_atomical_id_to_candidate_map(self, raw_candidate_entries):
return atomical_id_to_candidates_map

# Populate the requested full realm name to provide context for a subrealm request
def populate_request_full_realm_name(self, atomical, pid, request_subrealm, height: int = None):
def populate_request_full_realm_name(self, atomical, pid, request_subrealm, height: Optional[int] = None):
# Resolve the parent realm to get the parent realm path and construct the full_realm_name
parent_realm = self.get_base_mint_info_by_atomical_id(pid, height)
if not parent_realm:
Expand Down

0 comments on commit 3ca08e1

Please sign in to comment.