Skip to content

Commit

Permalink
refact: return value of add_number
Browse files Browse the repository at this point in the history
  • Loading branch information
NueloSE committed Dec 2, 2024
1 parent 8ca9cfa commit 2420ef0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions listings/advanced-concepts/sierra_ir/simple_program.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// [!region contract]
#[starknet::contract]
fn add_numbers(a: felt252, b: felt252) -> felt252 {
let sum = a + b;
sum
a + b;
}
// [!endregion contract]

0 comments on commit 2420ef0

Please sign in to comment.