Skip to content

Commit

Permalink
pallet/asset: Dependency update to generate weights to Asset (#350)
Browse files Browse the repository at this point in the history
Signed-off-by: Shreevatsa N <vatsa@dhiway.com>
  • Loading branch information
vatsa287 authored Mar 3, 2024
1 parent 7c1e103 commit a0ae94a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pallets/asset/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
3 changes: 2 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
);
Expand Down Expand Up @@ -1010,6 +1010,7 @@ mod benches {
[pallet_network_membership, NetworkMembership]
[pallet_network_score, NetworkScore]
[pallet_sudo, Sudo]
[pallet_asset, Asset]
);
}

Expand Down
4 changes: 4 additions & 0 deletions scripts/run_benches_for_pallets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ PALLETS=(
"pallet_network_score"
"pallet_schema"
"pallet_statement"
"pallet_asset"
)

echo "[+] Benchmarking ${#PALLETS[@]} pallets."
Expand Down Expand Up @@ -119,6 +120,9 @@ for PALLET in "${PALLETS[@]}"; do
pallet_statement)
FOLDER="statement"
;;
pallet_asset)
FOLDER="asset"
;;

*)
# Exit early.
Expand Down

0 comments on commit a0ae94a

Please sign in to comment.