Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix: handle not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 11, 2022
1 parent 15420e6 commit a78070a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ape_starknet/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ class StarknetAddressConverter(ConverterAPI):
"""

def is_convertible(self, value: Any) -> bool:
provider = self.network_manager.active_provider
return (
self.provider.network.ecosystem.name == PLUGIN_NAME
provider is not None
and provider.network.ecosystem.name == PLUGIN_NAME
and isinstance(value, str)
and is_hex_address(value)
and not is_checksum_address(value)
Expand Down

0 comments on commit a78070a

Please sign in to comment.