Closed esdras-santos closed 1 year ago
removed the orderNestedStruct.ts file because in Cairo 1.0 the order of the structs declaration does not matter, the following contract will compile:
#[contract] mod Test { struct A { structB: B, } #[derive(Copy, Drop)] struct B { i: u8, } fn main() -> u8 { let a = A{ structB: B { i: 1_u8 }, }; return a.structB.i; } }
Lint is failing
fixed
removed the orderNestedStruct.ts file because in Cairo 1.0 the order of the structs declaration does not matter, the following contract will compile: