Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
fix: pallet_contract benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
José Molina committed Nov 22, 2023
1 parent 7f9baed commit f6eeeb9
Show file tree
Hide file tree
Showing 3 changed files with 620 additions and 605 deletions.
4 changes: 1 addition & 3 deletions runtime/stout/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ use frame_support::{
parameter_types,
traits::{ConstU32, Nothing},
};
#[cfg(feature = "runtime-benchmarks")]
use pallet_contracts::NoopMigration;
use pallet_contracts::{
weights::SubstrateWeight, Config, DebugInfo, DefaultAddressGenerator, Frame, Schedule,
};
Expand Down Expand Up @@ -73,7 +71,7 @@ impl Config for Runtime {
#[cfg(not(feature = "runtime-benchmarks"))]
type Migrations = ();
#[cfg(feature = "runtime-benchmarks")]
type Migrations = (NoopMigration<1>, NoopMigration<2>);
type Migrations = pallet_contracts::migration::codegen::BenchMigrations;
type MaxDelegateDependencies = ConstU32<32>;
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type Debug = ();
Expand Down
4 changes: 1 addition & 3 deletions runtime/trappist/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ use frame_support::{
parameter_types,
traits::{ConstBool, ConstU32, Nothing},
};
#[cfg(feature = "runtime-benchmarks")]
use pallet_contracts::NoopMigration;
use pallet_contracts::{
migration::{v13, v14, v15},
Config, DebugInfo, DefaultAddressGenerator, Frame, Schedule,
Expand Down Expand Up @@ -73,7 +71,7 @@ impl Config for Runtime {
#[cfg(not(feature = "runtime-benchmarks"))]
type Migrations = (v13::Migration<Self>, v14::Migration<Self, Balances>, v15::Migration<Self>);
#[cfg(feature = "runtime-benchmarks")]
type Migrations = (NoopMigration<1>, NoopMigration<2>);
type Migrations = pallet_contracts::migration::codegen::BenchMigrations;
type MaxDelegateDependencies = ConstU32<32>;
type CodeHashLockupDepositPercent = CodeHashLockupDepositPercent;
type Debug = ();
Expand Down
Loading

0 comments on commit f6eeeb9

Please sign in to comment.