Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

contracts: Simplify benchmarks #13595

Merged
merged 11 commits into from
Mar 16, 2023
2 changes: 1 addition & 1 deletion frame/contracts/src/benchmarking/code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ pub fn max_pages<T: Config>() -> u32 {

fn inject_gas_metering<T: Config>(module: Module) -> Module {
let schedule = T::Schedule::get();
let gas_rules = schedule.rules(&module, Determinism::Deterministic);
let gas_rules = schedule.rules(Determinism::Deterministic);
let backend = gas_metering::host_function::Injector::new("seal0", "gas");
gas_metering::inject(module, backend, &gas_rules).unwrap()
}
Loading