Fix for xcm weight benchmarks generation (#1872)

This commit is contained in:
Branislav Kontur
2022-11-15 13:49:59 +01:00
committed by EgorPopelyaev
parent 2e371ef995
commit d97f2cffa7
4 changed files with 2 additions and 191 deletions
+2 -2
View File
@@ -46,10 +46,10 @@ fi
for pallet in ${pallets[@]}
do
# a little hack for xcm benchmarks
output_file="${pallet//::/_}"
extra_args=""
if [[ "$pallet" == *"xcm"* ]]; then
# a little hack for pallet_xcm_benchmarks - we want to force custom implementation for XcmWeightInfo
if [[ "$pallet" == "pallet_xcm_benchmarks::generic" ]] || [[ "$pallet" == "pallet_xcm_benchmarks::fungible" ]]; then
output_file="xcm/$output_file"
extra_args="--template=./templates/xcm-bench-template.hbs"
fi