Preimage: Check that at least one is upgraded (#1648)

Sanity check.
This commit is contained in:
Gavin Wood authored and GitHub committed 2023-09-20 16:28:28 +02:00
1 parent 1517eb8dd4
commit bb792af268
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -216,7 +216,7 @@ benchmarks! {
}
ensure_updated {
let n in 0..MAX_HASH_UPGRADE_BULK_COUNT;
let n in 1..MAX_HASH_UPGRADE_BULK_COUNT;
let caller = funded_account::<T>();
let hashes = (0..n).map(|i| insert_old_unrequested::<T>(i)).collect::<Vec<_>>();