@@ -78,6 +78,7 @@ pub struct ExecutionEntryPoint {
78
78
}
79
79
#[ allow( clippy:: too_many_arguments) ]
80
80
impl ExecutionEntryPoint {
81
+ /// Creates a new ExecutionEntryPoint instance.
81
82
pub fn new (
82
83
contract_address : Address ,
83
84
calldata : Vec < Felt252 > ,
@@ -227,7 +228,7 @@ impl ExecutionEntryPoint {
227
228
}
228
229
}
229
230
230
- /// Returns the entry point with selector corresponding with self.entry_point_selector, or the
231
+ /// Returns for version 0 the entry point with selector corresponding with self.entry_point_selector, or the
231
232
/// default if there is one and the requested one is not found.
232
233
fn get_selected_entry_point_v0 (
233
234
& self ,
@@ -260,6 +261,8 @@ impl ExecutionEntryPoint {
260
261
. ok_or ( TransactionError :: EntryPointNotFound )
261
262
}
262
263
264
+ // Returns the entry point with selector corresponding with self.entry_point_selector, or the
265
+ /// default if there is one and the requested one is not found.
263
266
fn get_selected_entry_point (
264
267
& self ,
265
268
contract_class : & CasmContractClass ,
@@ -291,6 +294,7 @@ impl ExecutionEntryPoint {
291
294
. ok_or ( TransactionError :: EntryPointNotFound )
292
295
}
293
296
297
+ /// Constructs a CallInfo object for deprecated contract classes.
294
298
fn build_call_info_deprecated < S : StateReader , C : ContractClassCache > (
295
299
& self ,
296
300
previous_cairo_usage : ExecutionResources ,
@@ -324,6 +328,7 @@ impl ExecutionEntryPoint {
324
328
} )
325
329
}
326
330
331
+ /// Constructs a CallInfo object for current contract classes.
327
332
fn build_call_info < S : StateReader , C : ContractClassCache > (
328
333
& self ,
329
334
previous_cairo_usage : ExecutionResources ,
@@ -383,6 +388,7 @@ impl ExecutionEntryPoint {
383
388
get_deployed_address_class_hash_at_address ( state, code_address)
384
389
}
385
390
391
+ /// The function is designed to execute a contract class for version 0.
386
392
fn _execute_version0_class < S : StateReader , C : ContractClassCache > (
387
393
& self ,
388
394
state : & mut CachedState < S , C > ,
@@ -488,6 +494,7 @@ impl ExecutionEntryPoint {
488
494
)
489
495
}
490
496
497
+ /// This function executes a contract class.
491
498
fn _execute < S : StateReader , C : ContractClassCache > (
492
499
& self ,
493
500
state : & mut CachedState < S , C > ,
0 commit comments