starknet-docs icon indicating copy to clipboard operation
starknet-docs copied to clipboard

Incorrect code snippets in `core::testing` docs

Open ddoktorski opened this issue 2 months ago • 0 comments

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);

ddoktorski avatar Sep 19 '25 09:09 ddoktorski