@@ -6,7 +6,7 @@ use std::collections::BTreeMap;
6
6
#[ cfg( any( feature = "multicore" , test) ) ]
7
7
use masp_primitives:: asset_type:: AssetType ;
8
8
#[ cfg( any( feature = "multicore" , test) ) ]
9
- use masp_primitives:: convert:: AllowedConversion ;
9
+ use masp_primitives:: convert:: { AllowedConversion , UncheckedAllowedConversion } ;
10
10
#[ cfg( any( feature = "multicore" , test) ) ]
11
11
use masp_primitives:: transaction:: components:: I128Sum as MaspAmount ;
12
12
use namada_controller:: PDController ;
@@ -529,7 +529,8 @@ where
529
529
S : StorageWrite + StorageRead + WithConversionState ,
530
530
{
531
531
let conversion_key_prefix = masp_conversion_key_prefix ( ) ;
532
- let mut conversion_updates = BTreeMap :: new ( ) ;
532
+ let mut conversion_updates =
533
+ BTreeMap :: < _ , UncheckedAllowedConversion > :: new ( ) ;
533
534
// Read conversion updates from storage and store them in a map
534
535
for conv_result in iter_prefix_with_filter_map (
535
536
storage,
@@ -556,7 +557,7 @@ where
556
557
) ;
557
558
continue ;
558
559
} ;
559
- leaf. conversion = conv;
560
+ leaf. conversion = conv. 0 ;
560
561
}
561
562
// Delete the updates now that they have been applied
562
563
storage. delete_prefix ( & conversion_key_prefix) ?;
0 commit comments