Skip to content

Commit 1ab49f8

Browse files
Update regex in proxy checks (#1187)
* change regex to match another node error message * update migration guide
1 parent 79b6659 commit 1ab49f8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/migration_guide.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ sets the calldata encoding accordingly.
3131
1. ``cairo_version`` parameter in :meth:`Account.sign_invoke_transaction` and :meth:`Account.execute` has been deprecated.
3232

3333

34+
0.18.2 Bugfixes
35+
---------------
36+
37+
.. currentmodule:: starknet_py.contract
38+
39+
1. Fixed a bug when using ``proxy_config=True`` in :meth:`Contract.from_address` method regarding ``Entry point EntryPointSelector(...) not found in contract``.
40+
3441
0.18.2 Minor changes
3542
--------------------
3643

starknet_py/proxy/contract_abi_resolver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ async def _get_implementation_from_proxy(
175175
if implementation is not None:
176176
yield implementation, ImplementationType.ADDRESS
177177
except ClientError as err:
178-
err_msg = r"(Entry point 0x[0-9a-f]+ not found in contract)|(is not declared)|(is not deployed)"
178+
err_msg = (
179+
r"(Entry point ((0x[0-9a-f]+)|(EntryPointSelector\(StarkFelt\(\"0x[0-9a-f]+)\"\)\))"
180+
r" not found in contract)|(is not declared)|(is not deployed)"
181+
)
179182
if not (
180183
re.search(err_msg, err.message, re.IGNORECASE)
181184
or err.code

0 commit comments

Comments
 (0)