Do not make pallet-nfts benchmarks signature-dependent#4756
Do not make pallet-nfts benchmarks signature-dependent#4756bkchr merged 8 commits intoparitytech:masterfrom
Conversation
bkchr
left a comment
There was a problem hiding this comment.
polkadot-sdk/substrate/frame/nfts/src/benchmarking.rs
Lines 232 to 236 in ad86209
| sp_runtime::MultiSigner, | ||
| sp_runtime::AccountId32, | ||
| sp_runtime::MultiSignature, |
There was a problem hiding this comment.
Hmm. This is not a good solution. This way () will not work for any runtime.
There was a problem hiding this comment.
Current behaviour is that it builds but fails to execute the benchmarks. In my opinion it's already an improvement that it does not build, so that you can take care of the error instead of thinking "benchmarks will be fine because it compiles".
Nice catch. Done in 54b2397. |
|
The CI pipeline was cancelled due to failure one of the required jobs. |
This PR: - Adds extra functionality to pallet-nfts's `BenchmarkHelper` to provide signers and sign message. - Abstracts away the explicit link with Sr25519 schema in the benchmarks, allowing parachains with a different one to be able to run them and calculate the weights. - Adds a default implementation for the empty tuple that leaves the code equivalent.
This PR: - Adds extra functionality to pallet-nfts's `BenchmarkHelper` to provide signers and sign message. - Abstracts away the explicit link with Sr25519 schema in the benchmarks, allowing parachains with a different one to be able to run them and calculate the weights. - Adds a default implementation for the empty tuple that leaves the code equivalent.
Similar to #4756 for `pallet-nfts`, the changes proposed in this PR intend to make benchmarks for `pallet-identity` signature-agnostic by the inclusion of a benchmark helper with sane defaults to handle the signing operations.
Similar to #4756 for `pallet-nfts`, the changes proposed in this PR intend to make benchmarks for `pallet-identity` signature-agnostic by the inclusion of a benchmark helper with sane defaults to handle the signing operations.
Similar to #4756 for `pallet-nfts`, the changes proposed in this PR intend to make benchmarks for `pallet-identity` signature-agnostic by the inclusion of a benchmark helper with sane defaults to handle the signing operations.
This PR:
BenchmarkHelperto provide signers and sign message.