mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 14:37:57 +00:00
feat: add super trait for block number (#2334)
And also related to a subxt PR https://github.com/paritytech/subxt/pull/1265
This commit is contained in:
@@ -124,7 +124,7 @@ where
|
||||
let finalized_num = self.client.info().finalized_number;
|
||||
|
||||
if finalized_num >= height {
|
||||
let Ok(Some(hash)) = self.client.block_hash(height.into()) else { return Ok(vec![]) };
|
||||
let Ok(Some(hash)) = self.client.block_hash(height) else { return Ok(vec![]) };
|
||||
return Ok(vec![hex_string(&hash.as_ref())])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user