1717
1818from ..fork_types import Address
1919from ..state import get_account
20+ from ..state_tracker import StateChanges
2021from ..transactions import Transaction
2122from ..vm import BlockEnvironment , Message , TransactionEnvironment
2223from ..vm .precompiled_contracts .mapping import PRE_COMPILED_CONTRACTS
@@ -27,6 +28,7 @@ def prepare_message(
2728 block_env : BlockEnvironment ,
2829 tx_env : TransactionEnvironment ,
2930 tx : Transaction ,
31+ transaction_state_changes : StateChanges ,
3032) -> Message :
3133 """
3234 Execute a transaction against the provided environment.
@@ -39,6 +41,8 @@ def prepare_message(
3941 Environment for the transaction.
4042 tx :
4143 Transaction to be executed.
44+ transaction_state_changes :
45+ State changes specific to this transaction.
4246
4347 Returns
4448 -------
@@ -87,4 +91,5 @@ def prepare_message(
8791 accessed_storage_keys = set (tx_env .access_list_storage_keys ),
8892 disable_precompiles = False ,
8993 parent_evm = None ,
94+ transaction_state_changes = transaction_state_changes ,
9095 )
0 commit comments