Skip to content

The template benchmark doesn't work. #15

@Lohann

Description

@Lohann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions