Mathieu

Results 166 issues of Mathieu

The following code snippet can be used to calculate the starknet_keccak of a u256 word. The input must have 32 characters. If the input is shoter, it needs to be...

This example will show how we can send a message to L2 from L1 and execute a function from a L2 contract annotated with `#[l1_handler]`. We will provide both Solidity...

In this example, we will demonstrate how to recover the public key from a signature and the signed message hash using `recover_public_key_u32`.

In this section, we show an example of how to perform a Library Call in Cairo using the high-levels `LibraryDispatcher` and `LibraryDispatcherTrait` which perform a `library_call` syscall (reference here https://docs.starknet.io/documentation/architecture_and_concepts/Contracts/system-calls/#library_call)...

Now that scarb uses test targets from Scarb, we can have integration tests under `package_name/tests` instead of `package_name/src/tests/integration_tests`. Adapt the section accordingly. https://book.cairo-lang.org/ch10-02-test-organization.html#integration-tests

Difficulty: hard

This specific paragraph in 5.3 method syntax is confusing and the title not adapted to what's actually being presented: _associated functions_, also known as _class methods_ in oop. typically, constructors...

Difficulty: hard

As there have been a lot of requests to contribute lately and to avoid people squatting issues without working on them, please ensure that: - ⚠️ You have read the...

good first issue
Difficulty: intermediate
State: in progress

This will now be possible following https://github.com/starkware-libs/cairo/pull/4340 . However, it requires a specific way of interacting with the dictionary: instead of calling `get`, we will have to call `entry`.

Type: feature
Difficulty: intermediate

A section on why and how loops are compiled to recursive functions, and the issues it might cause related to ownership (e.g getting variable moved when iterating over an array...

Difficulty: hard
exploration