Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The template benchmark doesn't work. #15

Open
Lohann opened this issue Nov 23, 2024 · 0 comments
Open

The template benchmark doesn't work. #15

Lohann opened this issue Nov 23, 2024 · 0 comments

Comments

@Lohann
Copy link

Lohann commented Nov 23, 2024

The pallet-template benchmark weights depends on substrate's frame-weight-template.hbs which doesn't exists in this repo.

the following command doesn't work:

./target/release/solochain-template-node benchmark pallet \
  --chain=dev \
  --pallet=pallet_template \
  --extrinsic='*' \
  --steps=50 \
  --repeat=20 \
  --wasm-execution=compiled \
  --output=pallets/template/src/weights.rs \
  --template ../../.maintain/frame-weight-template.hbs

fails with:

Input("Handlebars template file could not be found: \"../../.maintain/frame-weight-template.hbs\"")

I understand the goal of this repo is being a template that doesn't require clone the whole polkadot-sdk repo, so IMO it must be self contained and include the frame-weight-template.hbs file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant