mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-20 18:56:23 +00:00
fix: tests misc CI failures
- Add default impl for try_successful_origin in EnsureOriginWithArg trait to handle feature unification where pezframe-support/runtime-benchmarks is enabled but implementing crate's runtime-benchmarks is not - Add SKIP_WASM_BUILD=1 to test-node-metrics job to avoid serde_core WASM bug - Skip vendor workspace crates in check-each-crate.py that can't build standalone
This commit is contained in:
1 parent
6378693f97
commit
0cb3f97092
3 files changed
+30
-1
No files matched your search
@@ -177,8 +177,14 @@ pub trait EnsureOriginWithArg<OuterOrigin, Argument> {
|
||||
/// is impossible.
|
||||
///
|
||||
/// ** Should be used for benchmarking only!!! **
|
||||
///
|
||||
/// Default implementation returns `Err(())` to handle feature unification issues where
|
||||
/// pezframe-support/runtime-benchmarks is enabled but the implementing crate's
|
||||
/// runtime-benchmarks feature is not. Implementations should override this.
|
||||
#[cfg(feature = "runtime-benchmarks")]
|
||||
fn try_successful_origin(a: &Argument) -> Result<OuterOrigin, ()>;
|
||||
fn try_successful_origin(_a: &Argument) -> Result<OuterOrigin, ()> {
|
||||
Err(())
|
||||
}
|
||||
}
|
||||
|
||||
/// Simple macro to explicitly implement [EnsureOriginWithArg] to be used on any type which
|
||||
|
||||
Reference in new issue
Block a user