scarb icon indicating copy to clipboard operation
scarb copied to clipboard

Fix struct signature

Open FroyaTheHen opened this issue 1 month ago • 0 comments

Repro:

pub struct A {
    pub b: felt252,
    c: felt252,
}

will have a signature generated as:

pub struct A {
    pub b: felt252,
    c: felt252,
}

instead of

pub struct A {
    pub b: felt252,
}

whereas the members have the visibility checked properly.

FroyaTheHen avatar Nov 12 '25 10:11 FroyaTheHen