Skip to content

Commit

Permalink
fixed scrambled code
Browse files Browse the repository at this point in the history
Signed-off-by: Iulian Barbu <[email protected]>
  • Loading branch information
iulianbarbu committed Dec 4, 2024
1 parent ea95f47 commit ccd8187
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion cumulus/polkadot-omni-node/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ docify = { workspace = true }
# Local
jsonrpsee = { features = ["server"], workspace = true }
parachains-common = { workspace = true, default-features = true }
frame-metadata = { workspace = true, default-features = true }
scale-info = { workspace = true }
subxt = { workspace = true, features = ["native"] }
subxt-metadata = { workspace = true, default-features = true }
Expand Down
24 changes: 11 additions & 13 deletions cumulus/polkadot-omni-node/lib/src/common/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
//! Runtime parameters.
use cumulus_client_service::ParachainHostFunctions;
use frame_benchmarking_cli::fetch_latest_metadata_from_code_blob;
use sc_chain_spec::ChainSpec;
use sc_executor::WasmExecutor;
use sc_runtime_utilities::fetch_latest_metadata_from_code_blob;
use scale_info::{form::PortableForm, TypeDef, TypeDefPrimitive};
use std::fmt::Display;
use subxt_metadata::StorageEntryType;
Expand Down Expand Up @@ -169,30 +169,28 @@ impl MetadataInspector {
.build(),
sp_runtime::Cow::Borrowed(code_bytes.as_slice()),
)
.map_err(|err| err.to_string().into())
}
}

#[cfg(test)]
mod tests {, aInspect{
{,


use cumulus_client_service::ParachainHostFunctions;
use sc_executor::WasmExecutor;

use sc_executor::WasmExecutor;
DEFAULT_PARACHAIN_SYSTEM_PALLET_NAME,
mod tests {
use cumulus_client_service::ParachainHostFunctions;
use sc_executor::WasmExecutor;
use sc_runtime_utilities::fetch_latest_metadata_from_code_blob;

use crate::runtime::{
BlockNumber, MetadataInspector, DEFAULT_FRAME_SYSTEM_PALLET_NAME,
DEFAULT_PARACHAIN_SYSTEM_PALLET_NAME,
};

fn cumulus_test_runtime_metadata() -> subxt::Metadata {
f
etch_latest_metadata_from_code_blob(
fetch_latest_metadata_from_code_blob(
&WasmExecutor::<ParachainHostFunctions>::builder()

.with_allow_missing_host_functions(true)
.build(),
sp_runtime::Cow::Borrowed(cumulus_test_runtime::WASM_BINARY.unwrap()),
)
.unwrap()
}

Expand Down

0 comments on commit ccd8187

Please sign in to comment.