Skip to content

Commit

Permalink
Fix hard coded address in get_starknet_account
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Sep 15, 2023
1 parent f6ae300 commit f19fa61
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/starksheet-cairo/utils/starknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ async def get_starknet_account(
f"⚠️ Unable to verify public key for account at address 0x{address:x}"
)

contract_class = await RPC_CLIENT.get_class_at(
0x1C8D2BB17CDDF22728553C9700ADFBBD42D1999194B409B1188B17191CC2EFD
)
contract_class = await RPC_CLIENT.get_class_at(address)
cairo_version = 1 if isinstance(contract_class, SierraContractClass) else 0
return Account(
address=address,
Expand Down

0 comments on commit f19fa61

Please sign in to comment.