Here’s a pretty simple Cairo program: use debug::PrintTrait; fn calc(v1: u64, v2: u64) -> (u64, u64) { (v1 + v2, v2 * v2) } fn main() { let mut res: u64 = 0; let mut counter: u64 ...
When writing tests, we often need mock addresses to represent some entity like an account without actually deploying an initializing an account contract. The obvious thing to do is to use values li...
Deprecation notice: Since this post was published, Starknet and Cairo have evolved. As such, parts of the post might be obsolete. For the best, most up-to-date resources, please consult the officia...
A new version of content is available.