Skip to content

Commit d398b08

Browse files
committed
Link todos
1 parent 18f492c commit d398b08

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

crates/cheatnet/src/runtime_extensions/native/deploy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub fn deploy(
145145
// .tx_context
146146
// .block_context
147147
// .versioned_constants;
148-
// TODO support for reject
148+
// TODO(#3790) support for reject
149149
// if should_reject_deploy(
150150
// versioned_constants.disable_deploy_in_validation_mode,
151151
// syscall_handler_base.context.execution_mode,

crates/cheatnet/src/runtime_extensions/native/execution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub fn execute_entry_point_call(
115115

116116
let call_result = execution_result.map_err(EntryPointExecutionError::NativeUnexpectedError)?;
117117

118-
// TODO consider modifying this so it doesn't use take internally
118+
// TODO(#3790) consider modifying this so it doesn't use take internally
119119
if let Some(error) = syscall_handler.unrecoverable_error() {
120120
return Err(EntryPointExecutionError::NativeUnrecoverableError(
121121
Box::new(error),

crates/cheatnet/src/runtime_extensions/native/native_syscall_handler.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub struct CheatableNativeSyscallHandler<'a> {
3333
pub type BaseSyscallResult<T> = Result<T, SyscallExecutionError>;
3434

3535
impl CheatableNativeSyscallHandler<'_> {
36-
// TODO consider modifying this so it doesn't use take
36+
// TODO(#3790) consider modifying this so it doesn't use take
3737
pub fn unrecoverable_error(&mut self) -> Option<SyscallExecutionError> {
3838
self.native_syscall_handler.unrecoverable_error.take()
3939
}
@@ -263,7 +263,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
263263
.tx_info
264264
.nonce
265265
.unwrap_or(original_data.tx_info.nonce);
266-
// TODO impl conversions
266+
// TODO(#3790) impl conversions
267267
let resource_bounds = cheated_data.tx_info.resource_bounds.map_or(
268268
original_data.tx_info.resource_bounds,
269269
|rb| {
@@ -469,7 +469,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
469469
return Err(self.handle_error(remaining_gas, err.into()));
470470
}
471471
let selector = EntryPointSelector(entry_point_selector);
472-
// TODO restore blocking
472+
// TODO(#3790) restore blocking
473473
// self
474474
// .native_syscall_handler
475475
// .base
@@ -544,7 +544,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
544544
.native_syscall_handler
545545
.base
546546
.call
547-
// TODO why we default to code_address??
547+
// TODO(#3790) why we default to code_address??
548548
.code_address
549549
.unwrap_or(self.native_syscall_handler.base.call.storage_address);
550550
let event = self
@@ -576,7 +576,7 @@ impl StarknetSyscallHandler for &mut CheatableNativeSyscallHandler<'_> {
576576
.native_syscall_handler
577577
.base
578578
.call
579-
// TODO why we default to code_address??
579+
// TODO(#3790) why we default to code_address??
580580
.code_address
581581
.unwrap_or(self.native_syscall_handler.base.call.storage_address);
582582
let message = self

crates/forge/tests/e2e/docs_snippets_validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use super::common::runner::{runner, setup_package};
1313
#[test]
1414
#[cfg_attr(
1515
feature = "cairo-native",
16-
ignore = "TODO: Many snippets show vm resources witch cairo native doesn't support"
16+
ignore = "TODO(#3790): Many snippets show vm resources witch cairo native doesn't support"
1717
)]
1818
fn test_docs_snippets() {
1919
let root_dir = get_nth_ancestor(2);

crates/sncast/src/helpers/scarb_utils.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ pub fn build_and_load_artifacts(
172172
&target_dir.join(&config.profile),
173173
package,
174174
ui,
175-
// TODO: Reconsider running sncast with native
176175
CompilationOpts::default()
177176
).context("Failed to load artifacts. Make sure you have enabled sierra code generation in Scarb.toml")?
178177
.into_iter()
@@ -187,7 +186,6 @@ pub fn build_and_load_artifacts(
187186
&target_dir.join(default_profile),
188187
package,
189188
ui,
190-
// TODO: Reconsider running sncast with native
191189
CompilationOpts::default(),
192190
).context("Failed to load artifacts. Make sure you have enabled sierra code generation in Scarb.toml")?
193191
.into_iter()

0 commit comments

Comments
 (0)