mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
use headers on templates (#12546)
This commit is contained in:
@@ -1,20 +1,4 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
{{header}}
|
||||
//! Autogenerated weights for {{pallet}}
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
|
||||
|
||||
@@ -121,6 +121,7 @@ for PALLET in "${PALLETS[@]}"; do
|
||||
--wasm-execution=compiled \
|
||||
--heap-pages=4096 \
|
||||
--output="$WEIGHT_FILE" \
|
||||
--header="./HEADER-APACHE2" \
|
||||
--template=./.maintain/frame-weight-template.hbs 2>&1
|
||||
)
|
||||
if [ $? -ne 0 ]; then
|
||||
@@ -137,6 +138,7 @@ OUTPUT=$(
|
||||
--execution=wasm \
|
||||
--wasm-execution=compiled \
|
||||
--weight-path="./frame/support/src/weights/" \
|
||||
--header="./HEADER-APACHE2" \
|
||||
--warmup=10 \
|
||||
--repeat=100 2>&1
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user