Skip to content

Incorrect code snippets in core::testing docs #1714

@ddoktorski

Description

@ddoktorski

https://docs.starknet.io/build/corelib/core-testing-get_available_gas
https://docs.starknet.io/build/corelib/core-testing-get_unspent_gas

The assert! at the bottom is incorrect. It was probably supposed to be something like:

assert!(gas_after - gas_before < 100_000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions