Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix and fmt.
  • Loading branch information
hzy1919 committed Apr 28, 2022
commit ab6aeb17adb485b78cde12e0298a1d6252a15e5e
2 changes: 1 addition & 1 deletion utils/frame/benchmarking-cli/src/pallet/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#![allow(unused_parens)]
#![allow(unused_imports)]

use frame_support::{traits::Get, weights::{Weight, constants}};
use frame_support::{traits::Get, weights::{Weight, constants::WEIGHT_PER_NANOS}};
use sp_std::marker::PhantomData;

/// Weight functions for `{{pallet}}`.
Expand Down
2 changes: 1 addition & 1 deletion utils/frame/benchmarking-cli/src/pallet/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use inflector::Inflector;
use serde::Serialize;

use crate::{
shared::{WeightAsNanoseconds, UnderscoreHelper},
shared::{UnderscoreHelper, WeightAsNanoseconds},
PalletCmd,
};
use frame_benchmarking::{
Expand Down