celestia-client 0.4.0

Celestia client combining RPC and gRPC functionality.
Documentation
1
2
3
4
5
use crate::{Error, Result};

pub(crate) fn height_i64(height: u64) -> Result<i64> {
    height.try_into().map_err(|_| Error::InvalidHeight(height))
}