File tree 1 file changed +3
-8
lines changed 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ async fn create_spendable_document(
243
243
channel : & ChannelV5 ,
244
244
spender : Address ,
245
245
) -> Result < Spendable , ResponseError > {
246
- let deposit = adapter. get_deposit ( & channel, & spender) . await ?;
246
+ let deposit = adapter. get_deposit ( channel, & spender) . await ?;
247
247
let total = UnifiedNum :: from_precision ( deposit. total , token_info. precision . get ( ) ) ;
248
248
let still_on_create2 =
249
249
UnifiedNum :: from_precision ( deposit. still_on_create2 , token_info. precision . get ( ) ) ;
@@ -313,7 +313,7 @@ pub async fn get_spender_limits<A: Adapter + 'static>(
313
313
None => {
314
314
create_spendable_document (
315
315
& app. adapter ,
316
- & token_info,
316
+ token_info,
317
317
app. pool . clone ( ) ,
318
318
& channel,
319
319
spender,
@@ -334,12 +334,7 @@ pub async fn get_spender_limits<A: Adapter + 'static>(
334
334
None => return spender_response_without_leaf ( latest_spendable. deposit . total ) ,
335
335
} ;
336
336
337
- let total_spent = new_state
338
- . msg
339
- . balances
340
- . spenders
341
- . get ( & spender)
342
- . map ( |total_spent| total_spent) ;
337
+ let total_spent = new_state. msg . balances . spenders . get ( & spender) ;
343
338
344
339
let spender_leaf = total_spent. map ( |total_spent| SpenderLeaf {
345
340
total_spent : * total_spent,
You can’t perform that action at this time.
0 commit comments