File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ Migration guide
15
15
16
16
1. ABI parser supports now fixed size arrays.
17
17
18
+ .. py :currentmodule :: starknet_py.net.client_models
19
+
20
+ 2. ``l1_address `` in :class: `L2ToL1Message ` now accepts felts when deserializing.
21
+
18
22
**********************
19
23
0.26.2 Migration guide
20
24
**********************
Original file line number Diff line number Diff line change @@ -89,15 +89,6 @@ class Felt(NumberAsHex):
89
89
REGEX_PATTERN = r"^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$"
90
90
91
91
92
- class EthAddress (NumberAsHex ):
93
- """
94
- Field used to serialize and deserialize ETH address type.
95
- """
96
-
97
- MAX_VALUE = 2 ** 160
98
- REGEX_PATTERN = r"^0x[a-fA-F0-9]{40}$"
99
-
100
-
101
92
class Uint64 (NumberAsHex ):
102
93
"""
103
94
Field used to serialize and deserialize RPC u64 type.
Original file line number Diff line number Diff line change 28
28
)
29
29
from starknet_py .net .schemas .common import (
30
30
DAModeField ,
31
- EthAddress ,
32
31
ExecutionStatusField ,
33
32
Felt ,
34
33
FinalityStatusField ,
47
46
48
47
class L2toL1MessageSchema (Schema ):
49
48
l2_address = Felt (data_key = "from_address" , required = True )
50
- l1_address = EthAddress (data_key = "to_address" , required = True )
49
+ l1_address = Felt (data_key = "to_address" , required = True )
51
50
payload = fields .List (Felt (), data_key = "payload" , required = True )
52
51
53
52
@post_load
You can’t perform that action at this time.
0 commit comments