Skip to content

Add support for resource usage counting in Cairo Native executions #11

@JulianGCalderon

Description

@JulianGCalderon

Select Tool

snforge

Requested Feature

Depends on #5.

Right know, when execution tests with Native, the recordad gas usage is 0.

Running 2 test(s) from src/
[PASS] hello_starknet::test_add (l1_gas: ~0, l1_data_gas: ~0, l2_gas: ~0)
[PASS] hello_starknet::test_factorial (l1_gas: ~0, l1_data_gas: ~0, l2_gas: ~0)

We should see how the gas usage is recorded in Cairo VM executions, and try to replicate it in Cairo Native executions.

Solving this issue implies modifying run_native_test_case.

Until support for inner calls is added (#7), this issue should for tackled with simple tests only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions