Skip to content

[2.11.1] Implement Squashed Felt252 Dict Entries Libfunc #1151

@JulianGCalderon

Description

@JulianGCalderon

Cairo version 2.11.1 introduces a new libfunc that we should implement:

extern fn squashed_felt252_dict_entries<T>(
    dict: SquashedFelt252Dict<T>,
) -> Array<(felt252, T, T)> nopanic;

See casm lowering for more information: https://github.com/starkware-libs/cairo/blob/1a531143af0066d3d9141d63dfbfba2e293ff8f0/crates/cairo-lang-sierra-to-casm/src/invocations/squashed_felt252_dict.rs#L6-L14

Our implementation will differ from the casm lowering because the memory layout is different.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions