@@ -41,16 +41,22 @@ def composed(bal: BlockAccessList) -> BlockAccessList:
4141class BalNonceChange (CamelModel , RLPSerializable ):
4242 """Represents a nonce change in the block access list."""
4343
44- tx_index : Number = Field (..., description = "Transaction index where the change occurred" )
45- post_nonce : Number = Field (..., description = "Nonce value after the transaction" )
44+ tx_index : HexNumber = Field (
45+ HexNumber (1 ),
46+ description = "Transaction index where the change occurred" ,
47+ )
48+ post_nonce : HexNumber = Field (..., description = "Nonce value after the transaction" )
4649
4750 rlp_fields : ClassVar [List [str ]] = ["tx_index" , "post_nonce" ]
4851
4952
5053class BalBalanceChange (CamelModel , RLPSerializable ):
5154 """Represents a balance change in the block access list."""
5255
53- tx_index : Number = Field (..., description = "Transaction index where the change occurred" )
56+ tx_index : HexNumber = Field (
57+ HexNumber (1 ),
58+ description = "Transaction index where the change occurred" ,
59+ )
5460 post_balance : HexNumber = Field (..., description = "Balance after the transaction" )
5561
5662 rlp_fields : ClassVar [List [str ]] = ["tx_index" , "post_balance" ]
@@ -59,7 +65,10 @@ class BalBalanceChange(CamelModel, RLPSerializable):
5965class BalCodeChange (CamelModel , RLPSerializable ):
6066 """Represents a code change in the block access list."""
6167
62- tx_index : Number = Field (..., description = "Transaction index where the change occurred" )
68+ tx_index : HexNumber = Field (
69+ HexNumber (1 ),
70+ description = "Transaction index where the change occurred" ,
71+ )
6372 new_code : Bytes = Field (..., description = "New code bytes" )
6473
6574 rlp_fields : ClassVar [List [str ]] = ["tx_index" , "new_code" ]
@@ -68,7 +77,10 @@ class BalCodeChange(CamelModel, RLPSerializable):
6877class BalStorageChange (CamelModel , RLPSerializable ):
6978 """Represents a change to a specific storage slot."""
7079
71- tx_index : Number = Field (..., description = "Transaction index where the change occurred" )
80+ tx_index : HexNumber = Field (
81+ HexNumber (1 ),
82+ description = "Transaction index where the change occurred" ,
83+ )
7284 post_value : StorageKey = Field (..., description = "Value after the transaction" )
7385
7486 rlp_fields : ClassVar [List [str ]] = ["tx_index" , "post_value" ]
0 commit comments