walnuthq / cairovm.codes

Source code for cairovm.codes — a web app to compile Cairo programs into Sierra and CASM with step-through execution capabilities.
https://cairovm.codes
MIT License
29 stars 24 forks source link

feat: Display call parameters in the callstack table - Issue #143 #147

Closed melnikga closed 2 months ago

melnikga commented 2 months ago

143

The parameters are now displayed in the callstack table.

barabanovro commented 2 months ago

Hey @melnikga, please add this fibonacci program to examples

use core::felt252;

fn main() -> felt252 {
    let n = 10;
    let result = fib(1, 1, n);
    result
}

fn fib(a: felt252, b: felt252, n: felt252) -> felt252 {
    match n {
        0 => a,
        _ => fib(b, a + b, n - 1),
    }
}