Skip to content

Commit

Permalink
Fix get_starknet_account
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Sep 12, 2023
1 parent ce956a6 commit faaf4b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/starksheet-cairo/notebooks/sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def get_contract_calls(contract_address):
def get_class_hashes(contract_addresses):
labels = {
"0x025ec026985a3bf9d0cc1fe17326b245dfdc3ff89b8fde106542a3ea56c5a918": "Argent",
"0x01a736d6ed154502257f02b1ccdf4d9d1089f80811cd6acad48e6b6a9d1f2003": "Argent",
"0x03131fa018d520a037686ce3efddeab8f28895662f019ca3ca18a626650f7d1e": "Braavos",
}
known_classes = (
Expand Down
4 changes: 2 additions & 2 deletions packages/starksheet-cairo/utils/starknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ async def get_starknet_account(
or err.message
== "Client failed with code 21: Invalid message selector."
or "StarknetErrorCode.ENTRY_POINT_NOT_FOUND_IN_CONTRACT" in err.message
or err.message
== "Client failed with code -32603: Internal error: invalid entry point."
or err.message.find("Client failed with code -32603: Internal error:")
!= -1
):
continue
else:
Expand Down

0 comments on commit faaf4b1

Please sign in to comment.