File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ impl AsyncClient {
115
115
116
116
/// Get a [`BlockHeader`] given a particular block height.
117
117
pub async fn get_header ( & self , block_height : u32 ) -> Result < BlockHeader , Error > {
118
- let block_hash = self . get_block_hash ( block_height) . await ?. to_string ( ) ;
118
+ let block_hash = self . get_block_hash ( block_height) . await ?;
119
119
120
120
let resp = self
121
121
. client
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ impl BlockingClient {
128
128
129
129
/// Get a [`BlockHeader`] given a particular block height.
130
130
pub fn get_header ( & self , block_height : u32 ) -> Result < BlockHeader , Error > {
131
- let block_hash = self . get_block_hash ( block_height) ?. to_string ( ) ;
131
+ let block_hash = self . get_block_hash ( block_height) ?;
132
132
133
133
let resp = self
134
134
. agent
You can’t perform that action at this time.
0 commit comments