mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-02 08:51:08 +00:00
Propagate DispatchError for benchmarks. (#5075)
* Propagate DispatchError for benchmarks. * Apply review suggestions. * Use RuntimeString. * fix expect Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
1 parent
25d1b7878a
commit
d39605d9cd
5 files changed
+42
-34
No files matched your search
@@ -19,6 +19,7 @@
|
||||
use codec::{Encode, Decode};
|
||||
use sp_std::vec::Vec;
|
||||
use sp_io::hashing::blake2_256;
|
||||
use sp_runtime::RuntimeString;
|
||||
|
||||
/// An alphabet of possible parameters to use for benchmarking.
|
||||
#[derive(codec::Encode, codec::Decode, Clone, Copy, PartialEq, Debug)]
|
||||
@@ -42,7 +43,7 @@ sp_api::decl_runtime_apis! {
|
||||
extrinsic: Vec<u8>,
|
||||
steps: Vec<u32>,
|
||||
repeat: u32,
|
||||
) -> Option<Vec<BenchmarkResults>>;
|
||||
) -> Result<Vec<BenchmarkResults>, RuntimeString>;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user