Skip to content
Snippets Groups Projects
Commit d04d24d0 authored by Pierre Krieger's avatar Pierre Krieger Committed by GitHub
Browse files

Fix compiling substrate-chain-spec for WASM (#3971)

* Fix compiling substrate-chain-spec for WASM

* Fix tests
parent 2c2bba64
No related merge requests found
......@@ -196,6 +196,7 @@ check-web-wasm:
- time cargo web build -p sr-io
- time cargo web build -p sr-primitives
- time cargo web build -p sr-std
- time cargo web build -p substrate-chain-spec
- time cargo web build -p substrate-client
- time cargo web build -p substrate-consensus-aura
- time cargo web build -p substrate-consensus-babe
......
......@@ -5,7 +5,7 @@ authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
[dependencies]
chain-spec-derive = { package = "substrate-chain-spec-derive", path = "./derive" }
substrate-chain-spec-derive = { path = "./derive" }
impl-trait-for-tuples = "0.1.2"
network = { package = "substrate-network", path = "../../core/network" }
primitives = { package = "substrate-primitives", path = "../primitives" }
......
......@@ -253,7 +253,7 @@ impl<B, E> Extension for Forks<B, E> where
#[cfg(test)]
mod tests {
use super::*;
use chain_spec_derive::{ChainSpecGroup, ChainSpecExtension};
use substrate_chain_spec_derive::{ChainSpecGroup, ChainSpecExtension};
// Make the proc macro work for tests and doc tests.
use crate as substrate_chain_spec;
......
......@@ -113,7 +113,7 @@ mod extension;
pub use chain_spec::{ChainSpec, Properties, NoExtension};
pub use extension::{Group, Fork, Forks, Extension};
pub use chain_spec_derive::{ChainSpecExtension, ChainSpecGroup};
pub use substrate_chain_spec_derive::{ChainSpecExtension, ChainSpecGroup};
use serde::{Serialize, de::DeserializeOwned};
use sr_primitives::BuildStorage;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment