Function ink_env::block_number[][src]

pub fn block_number<T>() -> Result<T::BlockNumber> where
    T: Environment
Expand description

Returns the current block number.

Errors

If the returned value cannot be properly decoded.