diff --git a/bin/node/runtime/src/lib.rs b/bin/node/runtime/src/lib.rs index b663b6de27582..92e5dfa7830af 100644 --- a/bin/node/runtime/src/lib.rs +++ b/bin/node/runtime/src/lib.rs @@ -979,7 +979,7 @@ impl pallet_lottery::Config for Runtime { parameter_types! { pub const AssetDepositBase: Balance = 100 * DOLLARS; pub const AssetDepositPerZombie: Balance = 1 * DOLLARS; - pub const StringLimit: usize = 50; + pub const StringLimit: u32 = 50; pub const MetadataDepositBase: Balance = 10 * DOLLARS; pub const MetadataDepositPerByte: Balance = 1 * DOLLARS; } diff --git a/frame/assets/src/benchmarking.rs b/frame/assets/src/benchmarking.rs index a3499e1a11207..90b6f65b39890 100644 --- a/frame/assets/src/benchmarking.rs +++ b/frame/assets/src/benchmarking.rs @@ -215,8 +215,8 @@ benchmarks! { } set_metadata { - let n in 0 .. T::StringLimit::get() as u32; - let s in 0 .. T::StringLimit::get() as u32; + let n in 0 .. T::StringLimit::get(); + let s in 0 .. T::StringLimit::get(); let name = vec![0u8; n as usize]; let symbol = vec![0u8; s as usize];