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

Commit

Permalink
missed some usize
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Jan 18, 2021
1 parent 17c3e48 commit 1727b59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/node/runtime/src/lib.rs
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions frame/assets/src/benchmarking.rs
Expand Up @@ -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];
Expand Down

0 comments on commit 1727b59

Please sign in to comment.