File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -268,15 +268,15 @@ pub async fn locate_transaction(
268
268
. parse :: < u32 > ( )
269
269
. map_err ( |_| VerifierError :: FailureToGetDIDOperation ( suffix. to_owned ( ) ) ) ?;
270
270
271
- // If call to get_network_info fails, return error
271
+ // If call to get_network_info fails, return error.
272
272
client
273
273
. get_network_info ( )
274
- . map_err ( |_| VerifierError :: LedgerClientError ( "getblockhash " . to_string ( ) ) ) ?;
274
+ . map_err ( |_| VerifierError :: LedgerClientError ( "getnetworkinfo " . to_string ( ) ) ) ?;
275
275
276
276
// Convert the block height to a block hash.
277
277
let block_hash = client
278
278
. get_block_hash ( u64:: from ( block_height) )
279
- . map_err ( |_| VerifierError :: InvalidBlockHeight ( block_height . into ( ) ) ) ?;
279
+ . map_err ( |_| VerifierError :: LedgerClientError ( "getblockhash" . to_string ( ) ) ) ?;
280
280
281
281
Ok ( ( block_hash, tx_index) )
282
282
}
You can’t perform that action at this time.
0 commit comments