File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
modules/rest_blockfrost/src/handlers Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -119,10 +119,10 @@ pub async fn handle_single_drep_blockfrost(
119
119
let raw_sum = context. message_bus . request ( & accounts_query_topic, sum_msg) . await ?;
120
120
let sum_response = Arc :: try_unwrap ( raw_sum) . unwrap_or_else ( |arc| ( * arc) . clone ( ) ) ;
121
121
122
- let sum = match sum_response {
122
+ let amount = match sum_response {
123
123
Message :: StateQueryResponse ( StateQueryResponse :: Accounts (
124
124
AccountsStateQueryResponse :: AccountsBalancesSum ( sum) ,
125
- ) ) => sum,
125
+ ) ) => sum. to_string ( ) ,
126
126
127
127
Message :: StateQueryResponse ( StateQueryResponse :: Accounts (
128
128
AccountsStateQueryResponse :: Error ( e) ,
@@ -141,8 +141,6 @@ pub async fn handle_single_drep_blockfrost(
141
141
}
142
142
} ;
143
143
144
- let amount = ( sum + response. info . deposit ) . to_string ( ) ;
145
-
146
144
let response = DRepInfoREST {
147
145
drep_id : drep_id. to_string ( ) ,
148
146
hex : hex:: encode ( credential. get_hash ( ) ) ,
You can’t perform that action at this time.
0 commit comments