Skip to content

[2.12.0] Implement GasReserve related libfuncs #1426

@DiegoCivi

Description

@DiegoCivi

Implement the following libfuncs that were introduced in cairo 2.12.0:

  • Create: Creates a new gas reserve by withdrawing the specified amount from the gas counter. Returns Some(GasReserve) if there is sufficient gas, otherwise returns None.
  • Utilize: Adds the gas stored in the reserve back to the gas counter. The reserve is consumed in the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    In Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions