diff --git a/cairo_programs/cairo-1-programs/array_append.cairo b/cairo_programs/cairo-1-programs/array_append.cairo index f17418ef7b..81d7f2fc9f 100644 --- a/cairo_programs/cairo-1-programs/array_append.cairo +++ b/cairo_programs/cairo-1-programs/array_append.cairo @@ -4,6 +4,6 @@ fn main() -> Array { let mut numbers = ArrayTrait::new(); numbers.append(4_u32); numbers.append(2_u32); - let _x = numbers.pop_front(); + numbers.pop_front(); numbers } diff --git a/cairo_programs/cairo-1-programs/dictionaries.cairo b/cairo_programs/cairo-1-programs/dictionaries.cairo index 67465ee2d1..56176777b5 100644 --- a/cairo_programs/cairo-1-programs/dictionaries.cairo +++ b/cairo_programs/cairo-1-programs/dictionaries.cairo @@ -3,13 +3,13 @@ use dict::Felt252DictTrait; fn main() -> felt252 { let mut dict_u8 = felt252_dict_new::(); let mut dict_felt = felt252_dict_new::(); - let _dict_felt2 = felt252_dict_new::(); + let mut dict_felt2 = felt252_dict_new::(); dict_u8.insert(10, 110); dict_u8.insert(10, 110); - let _val10 = dict_u8[10]; // 110 - let _val11 = dict_felt[11]; // 0 + let val10 = dict_u8[10]; // 110 + let val11 = dict_felt[11]; // 0 dict_felt.insert(11, 1024); dict_felt[11] // 1024 } diff --git a/cairo_programs/cairo-1-programs/enum_flow.cairo b/cairo_programs/cairo-1-programs/enum_flow.cairo index 38b99f4489..17d4e5a56b 100644 --- a/cairo_programs/cairo-1-programs/enum_flow.cairo +++ b/cairo_programs/cairo-1-programs/enum_flow.cairo @@ -26,9 +26,9 @@ fn main() -> felt252 { match_long(el1); let el2 = MyEnumLong::c(22); match_long(el2); - let _eg1: MyEnumGeneric<(), felt252> = MyEnumGeneric::<(), felt252>::a(30); - let _eg2: MyEnumGeneric<(), felt252> = MyEnumGeneric::<(), felt252>::b(()); - let _eg3: MyEnumGeneric<(), felt252> = MyEnumGeneric::<(), felt252>::c(32); + let eg1: MyEnumGeneric<(), felt252> = MyEnumGeneric::<(), felt252>::a(30); + let eg2: MyEnumGeneric<(), felt252> = MyEnumGeneric::<(), felt252>::b(()); + let eg3: MyEnumGeneric<(), felt252> = MyEnumGeneric::<(), felt252>::c(32); 300 } diff --git a/cairo_programs/cairo-2-contracts/uint256_div_mod.cairo b/cairo_programs/cairo-2-contracts/uint256_div_mod.cairo index 4855c7fa35..e06dec4ed7 100644 --- a/cairo_programs/cairo-2-contracts/uint256_div_mod.cairo +++ b/cairo_programs/cairo-2-contracts/uint256_div_mod.cairo @@ -16,7 +16,7 @@ mod TestUint256DivMod { #[storage] struct Storage {} - #[abi(embed_v0)] + #[external(v0)] impl TestUint256DivMod of super::ITestUint256DivMod { fn test_uint256_div_mod_max(ref self: ContractState) { let a = BoundedInt::max();