Skip to content

Commit

Permalink
Fixes proxy benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
gupnik committed Nov 11, 2024
1 parent b5c361f commit 9fac833
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions substrate/frame/proxy/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
use super::*;
use crate::Pallet as Proxy;
use alloc::{boxed::Box, vec};
use frame::benchmarking::prelude::*;
use frame::benchmarking::prelude::{
account, benchmarks, impl_test_function, whitelisted_caller, BenchmarkError, RawOrigin,
};

const SEED: u32 = 0;

Expand Down Expand Up @@ -317,7 +319,7 @@ mod benchmarks {
BlockNumberFor::<T>::zero(),
0,
)?;
let height = frame_system::Pallet::<T>::block_number();
let height = T::BlockNumberProvider::current_block_number();
let ext_index = frame_system::Pallet::<T>::extrinsic_index().unwrap_or(0);
let pure_account = Pallet::<T>::pure_account(&caller, &T::ProxyType::default(), 0, None);

Expand Down

0 comments on commit 9fac833

Please sign in to comment.