Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

benchmarking prompt pallet-collective missing successful_origin in implementation #10548

@herryho

Description

@herryho

When I run the following command to try to generate the weight file for pallet-democracy, the compiler prompted that some part of the collective pallet are "missing successful_origin in implementation", as it is shown below. In fact, as I clicked into the error link(xxx/.cargo/git/checkouts/substrate-7e08433d4c370a21/fcc54a7/frame/collective/src/lib.rs:1035:1), it actually has implemented the successful function with the feature "runtime benchmarks".

What might cause this problem?

command:
cargo run --release --features="with-asgard-runtime,runtime-benchmarks" -- benchmark --chain="asgard-local" --steps=50 --repeat=1 --pallet="pallet-democracy" --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./HEADER-GPL3 --output="./runtime/asgard/src/weights/pallet_democracy.rs"

Error:
image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    J2-unconfirmedIssue might be valid, but it’s not yet known.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions