@@ -139,6 +139,7 @@ pub fn transact<S: StateReader>(
139139 & tx_state,
140140 & tx_state_changes_keys,
141141 & info. summarize ( versioned_constants) ,
142+ & info. summarize_builtins ( ) ,
142143 & info. receipt . resources ,
143144 versioned_constants,
144145 ) ?;
@@ -203,7 +204,7 @@ pub fn to_executor_tx(mut tx: ExecutableTxWithHash, mut flags: ExecutionFlags) -
203204 tx : ApiInvokeTransaction :: V0 ( starknet_api:: transaction:: InvokeTransactionV0 {
204205 entry_point_selector : EntryPointSelector ( tx. entry_point_selector ) ,
205206 contract_address : to_blk_address ( tx. contract_address ) ,
206- signature : TransactionSignature ( signature) ,
207+ signature : TransactionSignature ( signature. into ( ) ) ,
207208 calldata : Calldata ( Arc :: new ( calldata) ) ,
208209 max_fee : Fee ( tx. max_fee ) ,
209210 } ) ,
@@ -225,7 +226,7 @@ pub fn to_executor_tx(mut tx: ExecutableTxWithHash, mut flags: ExecutionFlags) -
225226 max_fee : Fee ( tx. max_fee ) ,
226227 nonce : Nonce ( tx. nonce ) ,
227228 sender_address : to_blk_address ( tx. sender_address ) ,
228- signature : TransactionSignature ( signature) ,
229+ signature : TransactionSignature ( signature. into ( ) ) ,
229230 calldata : Calldata ( Arc :: new ( calldata) ) ,
230231 } ) ,
231232 tx_hash : TransactionHash ( hash) ,
@@ -251,7 +252,7 @@ pub fn to_executor_tx(mut tx: ExecutableTxWithHash, mut flags: ExecutionFlags) -
251252 tip : Tip ( tx. tip ) ,
252253 nonce : Nonce ( tx. nonce ) ,
253254 sender_address : to_blk_address ( tx. sender_address ) ,
254- signature : TransactionSignature ( signature) ,
255+ signature : TransactionSignature ( signature. into ( ) ) ,
255256 calldata : Calldata ( Arc :: new ( calldata) ) ,
256257 paymaster_data : PaymasterData ( paymaster_data) ,
257258 account_deployment_data : AccountDeploymentData ( account_deploy_data) ,
@@ -281,7 +282,7 @@ pub fn to_executor_tx(mut tx: ExecutableTxWithHash, mut flags: ExecutionFlags) -
281282 tx : ApiDeployAccountTransaction :: V1 ( DeployAccountTransactionV1 {
282283 max_fee : Fee ( tx. max_fee ) ,
283284 nonce : Nonce ( tx. nonce ) ,
284- signature : TransactionSignature ( signature) ,
285+ signature : TransactionSignature ( signature. into ( ) ) ,
285286 class_hash : ClassHash ( tx. class_hash ) ,
286287 constructor_calldata : Calldata ( Arc :: new ( calldata) ) ,
287288 contract_address_salt : salt,
@@ -309,7 +310,7 @@ pub fn to_executor_tx(mut tx: ExecutableTxWithHash, mut flags: ExecutionFlags) -
309310 tx : ApiDeployAccountTransaction :: V3 ( DeployAccountTransactionV3 {
310311 tip : Tip ( tx. tip ) ,
311312 nonce : Nonce ( tx. nonce ) ,
312- signature : TransactionSignature ( signature) ,
313+ signature : TransactionSignature ( signature. into ( ) ) ,
313314 class_hash : ClassHash ( tx. class_hash ) ,
314315 constructor_calldata : Calldata ( Arc :: new ( calldata) ) ,
315316 contract_address_salt : salt,
@@ -336,15 +337,15 @@ pub fn to_executor_tx(mut tx: ExecutableTxWithHash, mut flags: ExecutionFlags) -
336337 max_fee : Fee ( tx. max_fee ) ,
337338 nonce : Nonce :: default ( ) ,
338339 sender_address : to_blk_address ( tx. sender_address ) ,
339- signature : TransactionSignature ( tx. signature ) ,
340+ signature : TransactionSignature ( tx. signature . into ( ) ) ,
340341 class_hash : ClassHash ( tx. class_hash ) ,
341342 } ) ,
342343
343344 DeclareTx :: V1 ( tx) => ApiDeclareTransaction :: V1 ( DeclareTransactionV0V1 {
344345 max_fee : Fee ( tx. max_fee ) ,
345346 nonce : Nonce ( tx. nonce ) ,
346347 sender_address : to_blk_address ( tx. sender_address ) ,
347- signature : TransactionSignature ( tx. signature ) ,
348+ signature : TransactionSignature ( tx. signature . into ( ) ) ,
348349 class_hash : ClassHash ( tx. class_hash ) ,
349350 } ) ,
350351
@@ -355,7 +356,7 @@ pub fn to_executor_tx(mut tx: ExecutableTxWithHash, mut flags: ExecutionFlags) -
355356 max_fee : Fee ( tx. max_fee ) ,
356357 nonce : Nonce ( tx. nonce ) ,
357358 sender_address : to_blk_address ( tx. sender_address ) ,
358- signature : TransactionSignature ( signature) ,
359+ signature : TransactionSignature ( signature. into ( ) ) ,
359360 class_hash : ClassHash ( tx. class_hash ) ,
360361 compiled_class_hash : CompiledClassHash ( tx. compiled_class_hash ) ,
361362 } )
@@ -374,7 +375,7 @@ pub fn to_executor_tx(mut tx: ExecutableTxWithHash, mut flags: ExecutionFlags) -
374375 tip : Tip ( tx. tip ) ,
375376 nonce : Nonce ( tx. nonce ) ,
376377 sender_address : to_blk_address ( tx. sender_address ) ,
377- signature : TransactionSignature ( signature) ,
378+ signature : TransactionSignature ( signature. into ( ) ) ,
378379 class_hash : ClassHash ( tx. class_hash ) ,
379380 account_deployment_data : AccountDeploymentData ( account_deploy_data) ,
380381 compiled_class_hash : CompiledClassHash ( tx. compiled_class_hash ) ,
@@ -479,14 +480,15 @@ pub fn block_context_from_envs(
479480 use_kzg_da : false ,
480481 } ;
481482
482- let chain_info = ChainInfo { fee_token_addresses, chain_id : to_blk_chain_id ( chain_spec. id ( ) ) } ;
483+ //TODO: change this
484+ let chain_info: ChainInfo = ChainInfo { fee_token_addresses, chain_id : to_blk_chain_id ( chain_spec. id ( ) ) , is_l3 : true } ;
483485
484486 // IMPORTANT:
485487 //
486488 // The versioned constants that we use here must match the version that is used during
487489 // re-execution with `snos`. Otherwise, there might be a mismatch between the calculated
488490 // fees.
489- let sn_version: StarknetVersion = block_env . starknet_version . try_into ( ) . expect ( "valid version" ) ;
491+ let sn_version: StarknetVersion = StarknetVersion :: V0_14_1 ;
490492 let mut versioned_constants = VersionedConstants :: get ( & sn_version) . unwrap ( ) . clone ( ) ;
491493
492494 // Only apply overrides if provided
0 commit comments