You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// todo(rodrigo): add an `entry point not found` test for Native
51
+
// Based on https://github.com/software-mansion-labs/sequencer/blob/b6d1c0b354d84225ab9c47f8ff28663d22e84d19/crates/blockifier/src/execution/native/entry_point_execution.rs#L20
// Copied from https://github.com/software-mansion-labs/sequencer/blob/b6d1c0b354d84225ab9c47f8ff28663d22e84d19/crates/blockifier/src/execution/native/entry_point_execution.rs#L73
// Copied from https://github.com/software-mansion-labs/sequencer/blob/b6d1c0b354d84225ab9c47f8ff28663d22e84d19/crates/blockifier/src/execution/native/syscall_handler.rs#L80
41
42
/// Handles all gas-related logics, syscall usage counting and perform additional checks. In
42
43
/// native, we need to explicitly call this method at the beginning of each syscall.
// Copied from blockifer/src/exection/native/syscall_handler.rs
102
+
// Based on https://github.com/software-mansion-labs/sequencer/blob/b6d1c0b354d84225ab9c47f8ff28663d22e84d19/crates/blockifier/src/execution/native/syscall_handler.rs#L153
// Copied from https://github.com/software-mansion-labs/sequencer/blob/b6d1c0b354d84225ab9c47f8ff28663d22e84d19/crates/blockifier/src/execution/native/syscall_handler.rs#L124
// In case of more than one inner call and because each inner call has their own
144
144
// syscall handler, if there is an unrecoverable error at call `n` it will create a
@@ -263,7 +263,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
263
263
.tx_info
264
264
.nonce
265
265
.unwrap_or(original_data.tx_info.nonce);
266
-
// TODO(#3790) impl conversions
266
+
// TODO(#3790) implement conversions
267
267
let resource_bounds = cheated_data.tx_info.resource_bounds.map_or(
268
268
original_data.tx_info.resource_bounds,
269
269
|rb| {
@@ -336,6 +336,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
336
336
})
337
337
}
338
338
339
+
// Based on https://github.com/software-mansion-labs/sequencer/blob/b6d1c0b354d84225ab9c47f8ff28663d22e84d19/crates/blockifier/src/execution/native/syscall_handler.rs#L322
339
340
fndeploy(
340
341
&mutself,
341
342
class_hash:Felt,
@@ -355,6 +356,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
let constructor_retdata = call_info.execution.retdata.0[..].to_vec();
@@ -377,7 +380,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
377
380
.replace_class(class_hash, remaining_gas)
378
381
}
379
382
380
-
// Copied from blockifier/src/execution/native/syscall_handler.rs
383
+
// Based on from https://github.com/software-mansion-labs/sequencer/blob/b6d1c0b354d84225ab9c47f8ff28663d22e84d19/crates/blockifier/src/execution/native/syscall_handler.rs#L399
381
384
fnlibrary_call(
382
385
&mutself,
383
386
class_hash:Felt,
@@ -432,7 +435,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
432
435
.0)
433
436
}
434
437
435
-
// Copied from blockifier/src/execution/native/syscall_handler.rs
438
+
// Based on https://github.com/software-mansion-labs/sequencer/blob/b6d1c0b354d84225ab9c47f8ff28663d22e84d19/crates/blockifier/src/execution/native/syscall_handler.rs#L444
436
439
fncall_contract(
437
440
&mutself,
438
441
address:Felt,
@@ -714,6 +717,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
0 commit comments