Update dockertests to new serai-client

This commit is contained in:
Luke Parker
2023-10-14 03:10:32 -04:00
parent e3e9939eaf
commit 7d4e8b59db
7 changed files with 56 additions and 58 deletions

View File

@@ -287,6 +287,7 @@ impl Serai {
.map_err(SeraiError::RpcError)
}
/// Create a TemporalSerai using whatever is currently the latest block.
pub async fn with_current_latest_block(&self) -> Result<TemporalSerai, SeraiError> {
let latest = self.latest_block_hash().await?;
Ok(TemporalSerai(self, latest))