Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
mraniki committed Jul 13, 2024
1 parent 003e851 commit 71f3dbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dxsp/handler/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def __init__(self, **kwargs):

if self.w3 and self.wallet_address:
self.account_number = (
f"{int(self.w3.net.version, 16)} - {str(self.wallet_address)[-8:]}"
f"{self.w3.net.version} - {str(self.wallet_address)[-8:]}"
)
logger.debug("Account {}", self.account_number)
self.contract_utils = ContractUtils(
Expand Down
3 changes: 2 additions & 1 deletion dxsp/utils/contract_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, **kwargs):
:type block_explorer_api: str
"""
self.w3 = kwargs.get("w3", None)
self.chain = int(self.w3.net.version, 16)
# self.chain = int(self.w3.net.version, 16)
self.chain = self.w3.net.version
self.dex_erc20_abi_url = kwargs.get("dex_erc20_abi_url", None)
self.token_mainnet_list = kwargs.get("token_mainnet_list", None)
self.token_testnet_list = kwargs.get("token_testnet_list", None)
Expand Down

0 comments on commit 71f3dbb

Please sign in to comment.