Skip to content

Commit

Permalink
Update ct-app/core/core.py
Browse files Browse the repository at this point in the history
Co-authored-by: Tibor <[email protected]>
  • Loading branch information
jeandemeusy and Teebor-Choka authored Feb 1, 2024
1 parent a29f9c9 commit 5c94215
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ct-app/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ def subgraph_staking_url(self) -> str:

@property
def subgraph_wxhopr_txs_url(self) -> str:
if self.subgraph_type == SubgraphType.DEFAULT:
return self.params.subgraph.wxhopr_txs_url

if self.subgraph_type == SubgraphType.BACKUP:
return self.params.subgraph.wxhopr_txs_url_backup

return None
# the mapping can be a static const member of the class or module
subgraph = {
SubgraphType.DEFAULT: self.params.subgraph.wxhopr_txs_url,
SubgraphType.BACKUP: self.params.subgraph.wxhopr_txs_url_backup
}
return subgraph.get(self.subgraph_type, None)

async def _retrieve_address(self):
addresses = await self.api.get_address("all")
Expand Down

0 comments on commit 5c94215

Please sign in to comment.