Function ink_env::gas_left [−][src]
pub fn gas_left<T>() -> Result<u64> where
T: Environment,
Expand description
Returns the amount of gas left for the contract execution.
Errors
If the returned value cannot be properly decoded.