Skip to content

Commit b571886

Browse files
committed
Remove some uneeded as_ctstring calls
1 parent 3615e13 commit b571886

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

noir-projects/aztec-nr/aztec/src/macros/internals_functions_generation/external/helpers.nr

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ pub(crate) comptime fn create_authorize_once_check(f: FunctionDefinition, is_pri
9898
quote { aztec::authwit::auth::assert_current_call_valid_authwit_public }
9999
};
100100
let invalid_nonce_message = f"Invalid authwit nonce. When '{from_arg_name}' and 'msg_sender' are the same, '{nonce_arg_name}' must be zero"
101-
.as_ctstring()
102101
.as_quoted_str();
103102
quote {
104103
if (!$from_arg_name_quoted.eq(self.msg_sender())) {

noir-projects/aztec-nr/aztec/src/macros/internals_functions_generation/external/private.nr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ pub(crate) comptime fn generate_private_external(f: FunctionDefinition) -> Quote
7070
};
7171

7272
let view_check = if is_fn_view(f) {
73-
let assertion_message =
74-
f"Function {original_function_name} can only be called statically".as_ctstring().as_quoted_str();
73+
let assertion_message = f"Function {original_function_name} can only be called statically".as_quoted_str();
7574
quote { assert(self.context.inputs.call_context.is_static_call, $assertion_message); }
7675
} else {
7776
quote {}

noir-projects/aztec-nr/aztec/src/macros/internals_functions_generation/external/public.nr

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ pub(crate) comptime fn generate_public_external(f: FunctionDefinition) -> Quoted
7171
};
7272

7373
let view_check = if is_fn_view(f) {
74-
let assertion_message =
75-
f"Function {original_function_name} can only be called statically".as_ctstring().as_quoted_str();
74+
let assertion_message = f"Function {original_function_name} can only be called statically".as_quoted_str();
7675
quote { assert(self.context.is_static_call(), $assertion_message); }
7776
} else {
7877
quote {}

noir-projects/aztec-nr/aztec/src/macros/notes.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ comptime fn get_next_note_type_id() -> Field {
3434
comptime fn generate_note_type_impl(s: TypeDefinition, note_type_id: Field) -> Quoted {
3535
let name = s.name();
3636
let typ = s.as_type();
37-
let note_type_name: str<_> = f"{name}".as_ctstring().as_quoted_str!();
37+
let note_type_name: str<_> = f"{name}".as_quoted_str!();
3838
let max_note_packed_len = crate::messages::logs::note::MAX_NOTE_PACKED_LEN;
3939

4040
quote {

0 commit comments

Comments
 (0)