Skip to content

Commit

Permalink
Fix build error in dot-app benchmarks (Snowfork#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizziepit authored Apr 28, 2021
1 parent 3f52379 commit 36f9f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parachain/pallets/dot-app/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use frame_benchmarking::{account, benchmarks, whitelisted_caller, impl_benchmark
use sp_core::H160;
use sp_runtime::traits::Zero;

use crate::Module as DotApp;
use crate::Pallet as DotApp;

benchmarks! {
// Benchmark `lock` extrinsic under worst case conditions:
Expand Down Expand Up @@ -67,7 +67,7 @@ benchmarks! {
unlock {
let origin = T::CallOrigin::successful_origin();
if let Ok(caller) = T::CallOrigin::try_origin(origin.clone()) {
Address::put(caller);
<Address<T>>::put(caller);
} else {
return Err("Failed to extract caller address from origin");
}
Expand Down

0 comments on commit 36f9f55

Please sign in to comment.