mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Fix compiling substrate-chain-spec for WASM (#3971)
* Fix compiling substrate-chain-spec for WASM * Fix tests
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user