@@ -122,18 +122,20 @@ class Runner:
122122 MAX_RECURSION_DEPTH : int = 100
123123 MAX_CALL_COUNTER : int = 250
124124
125+ _runtime_version : NanoRuntimeVersion
126+
125127 def __init__ (
126128 self ,
127129 * ,
128130 reactor : ReactorProtocol ,
129131 settings : HathorSettings ,
130132 runtime_version : NanoRuntimeVersion ,
131- tx_storage_proxy : NCTransactionStorageProxy ,
133+ tx_storage : NCTransactionStorageProxy ,
132134 storage_factory : NCStorageFactory ,
133135 block_storage : NCBlockStorage ,
134136 seed : bytes | None ,
135137 ) -> None :
136- self .tx_storage_proxy = tx_storage_proxy
138+ self .tx_storage = tx_storage
137139 self .storage_factory = storage_factory
138140 self .block_storage = block_storage
139141 self ._storages : dict [ContractId , NCContractStorage ] = {}
@@ -1143,7 +1145,7 @@ def _create_blueprint_instance(self, blueprint_id: BlueprintId, changes_tracker:
11431145 """Create a new blueprint instance."""
11441146 assert self ._call_info is not None
11451147 env = BlueprintEnvironment (self , self ._call_info .nc_logger , changes_tracker )
1146- blueprint_class = self .tx_storage_proxy .get_blueprint_class (blueprint_id )
1148+ blueprint_class = self .tx_storage .get_blueprint_class (blueprint_id )
11471149 return blueprint_class (env )
11481150
11491151 @_forbid_syscall_from_view ('create_deposit_token' )
@@ -1270,7 +1272,7 @@ def syscall_change_blueprint(self, blueprint_id: BlueprintId) -> None:
12701272
12711273 # The blueprint must exist. If an unknown blueprint is provided, it will raise an BlueprintDoesNotExist
12721274 # exception.
1273- self .tx_storage_proxy .get_blueprint_class (blueprint_id )
1275+ self .tx_storage .get_blueprint_class (blueprint_id )
12741276
12751277 nc_storage = self .get_current_changes_tracker ()
12761278 nc_storage .set_blueprint_id (blueprint_id )
@@ -1315,7 +1317,7 @@ def _get_token(self, token_uid: TokenUid) -> TokenDescription:
13151317 )
13161318
13171319 try :
1318- return self .tx_storage_proxy .get_token_description (token_uid )
1320+ return self .tx_storage .get_token_description (token_uid )
13191321 except TransactionDoesNotExist :
13201322 raise NCInvalidSyscall (
13211323 f'contract { call_record .contract_id .hex ()} could not find { token_uid .hex ()} token'
@@ -1445,19 +1447,19 @@ def forbid_call_on_view(self, name: str) -> None:
14451447
14461448
14471449class RunnerFactory :
1448- __slots__ = ('reactor' , 'settings' , 'tx_storage_proxy ' , 'nc_storage_factory' )
1450+ __slots__ = ('reactor' , 'settings' , 'tx_storage ' , 'nc_storage_factory' )
14491451
14501452 def __init__ (
14511453 self ,
14521454 * ,
14531455 reactor : ReactorProtocol ,
14541456 settings : HathorSettings ,
1455- tx_storage_proxy : NCTransactionStorageProxy ,
1457+ tx_storage : NCTransactionStorageProxy ,
14561458 nc_storage_factory : NCStorageFactory ,
14571459 ) -> None :
14581460 self .reactor = reactor
14591461 self .settings = settings
1460- self .tx_storage_proxy = tx_storage_proxy
1462+ self .tx_storage = tx_storage
14611463 self .nc_storage_factory = nc_storage_factory
14621464
14631465 def create (
@@ -1471,7 +1473,7 @@ def create(
14711473 reactor = self .reactor ,
14721474 settings = self .settings ,
14731475 runtime_version = runtime_version ,
1474- tx_storage_proxy = self .tx_storage_proxy ,
1476+ tx_storage = self .tx_storage ,
14751477 storage_factory = self .nc_storage_factory ,
14761478 block_storage = block_storage ,
14771479 seed = seed ,
0 commit comments