Skip to content

Commit

Permalink
fix: zks_l1_chain_id not returning int type
Browse files Browse the repository at this point in the history
  • Loading branch information
comilao authored and petarTxFusion committed Apr 24, 2024
1 parent d739a60 commit 0ebd1b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integration/test_zksync_web3.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def test_get_all_account_balances(self):

# @skip("Integration test, used for develop purposes only")
def test_get_l1_chain_id(self):
l1_chain_id = self.web3.zksync.zks_l1_chain_id()
self.assertIsInstance(self.web3.zksync.zks_l1_chain_id(), int)

# @skip("Integration test, used for develop purposes only")
def test_get_bridge_addresses(self):
Expand Down
2 changes: 1 addition & 1 deletion zksync2/module/zksync_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def zks_get_token_price(self, token_address: TokenAddress) -> Decimal:
return self._zks_get_token_price(token_address)

def zks_l1_chain_id(self) -> int:
return self._zks_l1_chain_id()
return int(self._zks_l1_chain_id(), 16)

def zks_get_balance(
self,
Expand Down

0 comments on commit 0ebd1b8

Please sign in to comment.