After upgrading our chain to polkadot 0.9.38 I managed to build the benchmarking using
cargo build --release --features runtime-benchmarks but when I try to benchmark any pallet after the build I always get the following error
Builder finished with `build_or_panic`; The panic is expected if runtime weights are not correct:
Error: Input("Did not find the benchmarking metadata. This could mean that you either did not build the node correctly with the `--features runtime-benchmarks` flag, or the chain spec that you are using was not created by a node that was compiled with the flag:
Any guidance on how to fix that error?
Link to code here