Skip to content

Commit 03e7e8f

Browse files
committed
update
1 parent 6f29d8f commit 03e7e8f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tokens/src/benchmarking.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ mod benchmarks {
3434
));
3535

3636
let to: T::AccountId = account("to", 0, 0);
37-
let to_lookup = <T as frame_system::Config>::Lookup::unlookup(to.clone());
37+
let to_lookup = T::Lookup::unlookup(to.clone());
3838

3939
#[extrinsic_call]
4040
_(RawOrigin::Signed(from), to_lookup, currency_id, amount);
@@ -55,7 +55,7 @@ mod benchmarks {
5555
));
5656

5757
let to: T::AccountId = account("to", 0, 0);
58-
let to_lookup = <T as frame_system::Config>::Lookup::unlookup(to.clone());
58+
let to_lookup = T::Lookup::unlookup(to.clone());
5959

6060
#[extrinsic_call]
6161
_(RawOrigin::Signed(from.clone()), to_lookup, currency_id, false);
@@ -79,7 +79,7 @@ mod benchmarks {
7979
));
8080

8181
let to: T::AccountId = account("to", 0, 0);
82-
let to_lookup = <T as frame_system::Config>::Lookup::unlookup(to.clone());
82+
let to_lookup = T::Lookup::unlookup(to.clone());
8383

8484
#[extrinsic_call]
8585
_(RawOrigin::Signed(from), to_lookup, currency_id, amount);
@@ -93,7 +93,7 @@ mod benchmarks {
9393
#[benchmark]
9494
fn force_transfer() {
9595
let from: T::AccountId = account("from", 0, 0);
96-
let from_lookup = <T as frame_system::Config>::Lookup::unlookup(from.clone());
96+
let from_lookup = T::Lookup::unlookup(from.clone());
9797

9898
let (currency_id, amount) = T::BenchmarkHelper::get_currency_id_and_amount().unwrap();
9999

@@ -104,7 +104,7 @@ mod benchmarks {
104104
));
105105

106106
let to: T::AccountId = account("to", 0, 0);
107-
let to_lookup = <T as frame_system::Config>::Lookup::unlookup(to.clone());
107+
let to_lookup = T::Lookup::unlookup(to.clone());
108108

109109
#[extrinsic_call]
110110
_(RawOrigin::Root, from_lookup, to_lookup, currency_id, amount);
@@ -118,7 +118,7 @@ mod benchmarks {
118118
#[benchmark]
119119
fn set_balance() {
120120
let who: T::AccountId = account("who", 0, 0);
121-
let who_lookup = <T as frame_system::Config>::Lookup::unlookup(who.clone());
121+
let who_lookup = T::Lookup::unlookup(who.clone());
122122

123123
let (currency_id, amount) = T::BenchmarkHelper::get_currency_id_and_amount().unwrap();
124124

vesting/src/benchmarking.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ mod benchmarks {
4646
set_balance::<T>(&from, schedule.total_amount().unwrap() + amount);
4747

4848
let to: T::AccountId = account("to", 0, 0);
49-
let to_lookup = <T as frame_system::Config>::Lookup::unlookup(to.clone());
49+
let to_lookup = T::Lookup::unlookup(to.clone());
5050

5151
#[extrinsic_call]
5252
_(RawOrigin::Signed(from), to_lookup, schedule.clone());
@@ -71,7 +71,7 @@ mod benchmarks {
7171
);
7272

7373
let to: T::AccountId = account("to", 0, 0);
74-
let to_lookup = <T as frame_system::Config>::Lookup::unlookup(to.clone());
74+
let to_lookup = T::Lookup::unlookup(to.clone());
7575

7676
for _ in 0..i {
7777
schedule.start = i.into();
@@ -102,7 +102,7 @@ mod benchmarks {
102102
};
103103

104104
let to: T::AccountId = account("to", 0, 0);
105-
let to_lookup = <T as frame_system::Config>::Lookup::unlookup(to.clone());
105+
let to_lookup = T::Lookup::unlookup(to.clone());
106106

107107
set_balance::<T>(&to, schedule.total_amount().unwrap().saturating_mul(i.into()));
108108

0 commit comments

Comments
 (0)