Function ink_env::gas_left

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

Returns the amount of gas left for the contract execution.

§Errors

If the returned value cannot be properly decoded.