Skip to content

Commit

Permalink
Fix the secondary runtime metadata
Browse files Browse the repository at this point in the history
polkadot.js is broken due to the metadata RPC call panics.

```
FATAL: Unable to initialize the API: -32603: Unknown error occurred: Client error: Execution failed: Runtime panicked: All path segments should be valid Rust identifiers: InvalidIdentifier { segment: 1 }
```

It turns out `r#` is unsupported by scale-info.
  • Loading branch information
liuchengxu committed Apr 7, 2022
1 parent ace315e commit 1729f46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cumulus/parachain-template/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// Skip in regular `no-std` environment, such that we don't cause conflicts of globally exported
// functions
#[cfg(any(feature = "wasm-builder", feature = "std"))]
mod r#impl;
mod runtime;

// Skip in regular `no-std` environment, such that we don't cause conflicts of globally exported
// functions
#[cfg(any(feature = "wasm-builder", feature = "std"))]
pub use r#impl::*;
pub use runtime::*;

// Make the WASM binary available, except in wasm builder environment.
#[cfg(not(feature = "wasm-builder"))]
Expand Down
4 changes: 2 additions & 2 deletions cumulus/test/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
// Skip in regular `no-std` environment, such that we don't cause conflicts of globally exported
// functions
#[cfg(any(feature = "wasm-builder", feature = "std"))]
mod r#impl;
mod runtime;

// Skip in regular `no-std` environment, such that we don't cause conflicts of globally exported
// functions
#[cfg(any(feature = "wasm-builder", feature = "std"))]
pub use r#impl::*;
pub use runtime::*;

// Make the WASM binary available, except in wasm builder environment.
#[cfg(not(feature = "wasm-builder"))]
Expand Down
File renamed without changes.

0 comments on commit 1729f46

Please sign in to comment.