From a0ae94abba8fab15ecade01ee0afa16e05763766 Mon Sep 17 00:00:00 2001 From: Shree Vatsa N Date: Sun, 3 Mar 2024 12:57:12 +0530 Subject: [PATCH] pallet/asset: Dependency update to generate weights to Asset (#350) Signed-off-by: Shreevatsa N --- pallets/asset/Cargo.toml | 4 ++-- runtime/Cargo.toml | 1 + runtime/src/lib.rs | 3 ++- scripts/run_benches_for_pallets.sh | 4 ++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/pallets/asset/Cargo.toml b/pallets/asset/Cargo.toml index a7b72ddd5..4feeae102 100644 --- a/pallets/asset/Cargo.toml +++ b/pallets/asset/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pallet-asset" -description = "Experimentatl pallet for benchmarks" +description = "Manage Asset" version = "0.9.1-dev" authors.workspace = true edition.workspace = true @@ -69,7 +69,7 @@ std = [ "identifier/std", "frame-support/std", "frame-system/std", - "frame-benchmarking?/std", + "frame-benchmarking/std", "cord-primitives/std", "cord-utilities/std", "pallet-balances/std", diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 2d26baac8..53343d787 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -236,6 +236,7 @@ runtime-benchmarks = [ "pallet-sudo/runtime-benchmarks", "frame-system-benchmarking/runtime-benchmarks", "pallet-network-score/runtime-benchmarks", + "pallet-asset/runtime-benchmarks", ] try-runtime = [ diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 8547c5dbd..ed805548f 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -843,7 +843,7 @@ construct_runtime! ( Statement: pallet_statement = 105, DidName: pallet_did_name = 106, NetworkScore: pallet_network_score = 108, - Asset: pallet_asset =109, + Asset: pallet_asset = 109, Sudo: pallet_sudo = 255, } ); @@ -1010,6 +1010,7 @@ mod benches { [pallet_network_membership, NetworkMembership] [pallet_network_score, NetworkScore] [pallet_sudo, Sudo] + [pallet_asset, Asset] ); } diff --git a/scripts/run_benches_for_pallets.sh b/scripts/run_benches_for_pallets.sh index 9d26638be..bb9e5b2f8 100755 --- a/scripts/run_benches_for_pallets.sh +++ b/scripts/run_benches_for_pallets.sh @@ -69,6 +69,7 @@ PALLETS=( "pallet_network_score" "pallet_schema" "pallet_statement" + "pallet_asset" ) echo "[+] Benchmarking ${#PALLETS[@]} pallets." @@ -119,6 +120,9 @@ for PALLET in "${PALLETS[@]}"; do pallet_statement) FOLDER="statement" ;; + pallet_asset) + FOLDER="asset" + ;; *) # Exit early.