Commit 245e68b 1 parent b1cc5ad commit 245e68b Copy full SHA for 245e68b
File tree 1 file changed +3
-3
lines changed
pallets/pallet-bonded-coins/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ pub mod pallet {
70
70
Hashable , Parameter ,
71
71
} ;
72
72
use frame_system:: pallet_prelude:: * ;
73
- use parity_scale_codec:: alloc:: collections:: HashSet ;
74
73
use sp_arithmetic:: ArithmeticError ;
75
74
use sp_core:: U256 ;
76
75
use sp_runtime:: {
@@ -80,6 +79,7 @@ pub mod pallet {
80
79
BoundedVec , DispatchError , TokenError ,
81
80
} ;
82
81
use sp_std:: {
82
+ collections:: btree_set:: BTreeSet ,
83
83
iter:: Iterator ,
84
84
ops:: { AddAssign , BitOrAssign , ShlAssign } ,
85
85
prelude:: * ,
@@ -408,8 +408,8 @@ pub mod pallet {
408
408
// currency to it. This should also verify that the currency actually exists.
409
409
T :: Collaterals :: touch ( collateral_id. clone ( ) , pool_account, & who) ?;
410
410
411
- let mut names_seen = HashSet :: < StringInputOf < T > > :: with_capacity ( currencies . len ( ) ) ;
412
- let mut symbols_seen = HashSet :: < StringInputOf < T > > :: with_capacity ( currencies . len ( ) ) ;
411
+ let mut names_seen = BTreeSet :: < StringInputOf < T > > :: new ( ) ;
412
+ let mut symbols_seen = BTreeSet :: < StringInputOf < T > > :: new ( ) ;
413
413
414
414
currencies. into_iter ( ) . zip ( currency_ids. iter ( ) ) . try_for_each (
415
415
|( token_metadata, asset_id) | -> DispatchResult {
You can’t perform that action at this time.
0 commit comments