Closed Szegoo closed 1 year ago
@ilionic Do you have an idea how this could be fixed? AFAIK when compiling a crate with custom features(in this case runtime-benchamrks
feature) the other crates should also have the custom feature on.
@ilionic Do you have an idea how this could be fixed? AFAIK when compiling a crate with custom features(in this case
runtime-benchamrks
feature) the other crates should also have the custom feature on.
@Maar-io wdyt?
@Szegoo please provide the code/commit for the rmrk-market
@Maar-io There is no code to provide, this is an issue regarding the current main branch of this repository. If you run
cargo test -p pallet-rmrk-market --features runtime-benchmarks
Or
cargo test -p pallet-rmrk-equip --features runtime-benchmarks
You will see that the code doesn't compile :/
@Szegoo can you try copying over the code to relevant pallet instead of importing?
@ilionic If I copy the RmrkBenchmark
struct into the rmrk-market
pallet it successfully compiles.
Edit: so should we then redeclare the RmrkBenchmark
struct in every crate where it is being passed for the Helper
type?
@Szegoo in case there is no code change how do you expect benchmarking for rmrk-market will work? You need to implement benchmarking tests, configure runtime with it and generate weights
@Maar-io Yes you are right, I am not sure why I thought the code will compile with the benchmarking feature if I haven't implemented it. Sorry for this.
When running:
The following error is thrown:
Edit: this issue also occurs in the
rmrk-equip
pallet.