Skip to content

Commit

Permalink
Fix compiling substrate-chain-spec for WASM (paritytech#3971)
Browse files Browse the repository at this point in the history
* Fix compiling substrate-chain-spec for WASM

* Fix tests
  • Loading branch information
tomaka committed Oct 30, 2019
1 parent 2aa1d46 commit 64e9a77
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion core/chain-spec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion core/chain-spec/src/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion core/chain-spec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64e9a77

Please sign in to comment.