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

Commit

Permalink
fix: remote mypy attempt to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jun 17, 2022
1 parent 8010282 commit beb1e64
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ape_starknet/accounts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ def execute_abi(self) -> Optional[MethodABI]:
if not execute_abi_ls:
raise AccountsError(f"Account '{contract_address}' does not have __execute__ method.")

return execute_abi_ls[0]
abi = execute_abi_ls[0]
if not isinstance(abi, MethodABI):
raise AccountsError("ABI for '__execute__' is not a method.")

return abi

def __repr__(self):
return f"<{self.__class__.__name__} {self.contract_address}>"
Expand Down

0 comments on commit beb1e64

Please sign in to comment.