git.delta.rocks / unique-network / refs/commits / 278f1b9c8b83

difftreelog

feat(common) benchmarking

Yaroslav Bolyukin2021-10-22parent: #c8da6d5.patch.diff
in: master

3 files changed

modifiedpallets/common/src/benchmarking.rsdiffbeforeafterboth
before · pallets/common/src/benchmarking.rs
1#![cfg(feature = "runtime-benchmarking")]
modifiedpallets/common/src/lib.rsdiffbeforeafterboth
--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -17,6 +17,7 @@
 use sp_core::H160;
 use sp_runtime::{ArithmeticError, DispatchError, DispatchResult};
 pub mod account;
+#[cfg(feature = "runtime-benchmarks")]
 pub mod benchmarking;
 pub mod erc;
 pub mod eth;
modifiedpallets/nft/Cargo.tomldiffbeforeafterboth
--- a/pallets/nft/Cargo.toml
+++ b/pallets/nft/Cargo.toml
@@ -16,7 +16,10 @@
 
 [features]
 default = ['std']
-runtime-benchmarks = ['frame-benchmarking']
+runtime-benchmarks = [
+    'frame-benchmarking',
+    'pallet-common/runtime-benchmarks',
+]
 std = [
     'codec/std',
     'serde/std',