Skip to content

Commit

Permalink
Fix for broken benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Aug 8, 2024
1 parent 16aa6eb commit caae7ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion primitives/src/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ where
// Max number of assets - relay asset & native asset
let fungibles = MAX_ASSETS - 2;
let fungibles_amount: u128 = 1_000_000_000_000_000_000_000_000;
let assets = (0..fungibles)
let assets = (1..=fungibles)
.map(|i| Asset {
id: AssetId(GeneralIndex(i as u128).into()),
fun: Fungible(fungibles_amount * i as u128),
Expand Down Expand Up @@ -104,6 +104,7 @@ where
id: AssetId(Location::here()),
fun: Fungible(fungibles_amount),
}))
.rev()
.collect::<Vec<Asset>>()
.into()
}
Expand Down

0 comments on commit caae7ac

Please sign in to comment.