Function ink_env::gas_left

source ·
pub fn gas_left<E>() -> Gaswhere
    E: Environment,
Expand description

Returns the amount of gas left for the contract execution.

Errors

If the returned value cannot be properly decoded.