@@ -78,7 +78,7 @@ pub async fn handle_single_account_blockfrost(
7878 Err ( e) => {
7979 return Ok ( RESTResponse :: with_text (
8080 500 ,
81- & format ! ( "Internal server error while retrieving stake address : {e}" ) ,
81+ & format ! ( "Internal server error while mapping SPO : {e}" ) ,
8282 ) ) ;
8383 }
8484 } ,
@@ -91,7 +91,7 @@ pub async fn handle_single_account_blockfrost(
9191 Err ( e) => {
9292 return Ok ( RESTResponse :: with_text (
9393 500 ,
94- & format ! ( "Internal server error while retrieving stake address : {e}" ) ,
94+ & format ! ( "Internal server error while mapping dRep : {e}" ) ,
9595 ) )
9696 }
9797 } ,
@@ -109,7 +109,7 @@ pub async fn handle_single_account_blockfrost(
109109 Ok ( json) => Ok ( RESTResponse :: with_json ( 200 , & json) ) ,
110110 Err ( e) => Ok ( RESTResponse :: with_text (
111111 500 ,
112- & format ! ( "Internal server error while retrieving DRep delegation distribution : {e}" ) ,
112+ & format ! ( "Internal server error while retrieving account info : {e}" ) ,
113113 ) ) ,
114114 }
115115}
@@ -207,7 +207,7 @@ pub async fn handle_account_registrations_blockfrost(
207207 Ok ( json) => Ok ( RESTResponse :: with_json ( 200 , & json) ) ,
208208 Err ( e) => Ok ( RESTResponse :: with_text (
209209 500 ,
210- & format ! ( "Internal server error while serializing account registration history: {e}" ) ,
210+ & format ! ( "Internal server error while serializing registration history: {e}" ) ,
211211 ) ) ,
212212 }
213213}
@@ -317,7 +317,7 @@ pub async fn handle_account_delegations_blockfrost(
317317 Ok ( json) => Ok ( RESTResponse :: with_json ( 200 , & json) ) ,
318318 Err ( e) => Ok ( RESTResponse :: with_text (
319319 500 ,
320- & format ! ( "Internal server error while serializing account delegation history: {e}" ) ,
320+ & format ! ( "Internal server error while serializing delegation history: {e}" ) ,
321321 ) ) ,
322322 }
323323}
@@ -328,19 +328,17 @@ pub async fn handle_account_mirs_blockfrost(
328328 params : Vec < String > ,
329329 handlers_config : Arc < HandlersConfig > ,
330330) -> Result < RESTResponse > {
331- let stake_address = match parse_stake_address ( & params) {
331+ let account = match parse_stake_address ( & params) {
332332 Ok ( addr) => addr,
333333 Err ( resp) => return Ok ( resp) ,
334334 } ;
335335
336336 // Prepare the message
337337 let msg = Arc :: new ( Message :: StateQuery ( StateQuery :: Accounts (
338- AccountsStateQuery :: GetAccountMIRHistory {
339- account : stake_address,
340- } ,
338+ AccountsStateQuery :: GetAccountMIRHistory { account } ,
341339 ) ) ) ;
342340
343- // Get delegations from historical accounts state
341+ // Get MIRs from historical accounts state
344342 let mirs = query_state (
345343 & context,
346344 & handlers_config. historical_accounts_query_topic ,
0 commit comments