diff --git a/substrate/executor/src/native_executor.rs b/substrate/executor/src/native_executor.rs index 37a3a18999..e4812be894 100644 --- a/substrate/executor/src/native_executor.rs +++ b/substrate/executor/src/native_executor.rs @@ -213,7 +213,7 @@ mod tests { construct_block( 2, block1().1, - hex!("e2ba57cfb94b870ea6670b012b49dc33cbb70e3aa8d36cf54dfa5e4e69cd0778").into(), + hex!("1feb4d3a2e587079e6ce1685fa79994efd995e33cb289d39cded67aac1bb46a9").into(), vec![ Transaction { signed: two(), diff --git a/substrate/primitives/Cargo.toml b/substrate/primitives/Cargo.toml index 359d76c81b..89bc334766 100644 --- a/substrate/primitives/Cargo.toml +++ b/substrate/primitives/Cargo.toml @@ -11,7 +11,7 @@ fixed-hash = { git = "https://github.com/rphmeier/primitives.git", branch = "com rustc-hex = { git = "https://github.com/rphmeier/rustc-hex.git", version = "2.0", default_features = false } serde = { version = "1.0", default_features = false } serde_derive = { version = "1.0", optional = true } -uint = { git = "https://github.com/rphmeier/primitives.git", branch = "compile-for-wasm" } +uint = { git = "https://github.com/rphmeier/primitives.git", branch = "compile-for-wasm", default_features = false } twox-hash = { version = "1.1.0", optional = true } byteorder = { version = "1.1", default_features = false } blake2-rfc = { version = "0.2.18", optional = true } diff --git a/substrate/runtime-io/Cargo.toml b/substrate/runtime-io/Cargo.toml index e975b063a6..823ecd00b6 100644 --- a/substrate/runtime-io/Cargo.toml +++ b/substrate/runtime-io/Cargo.toml @@ -10,7 +10,7 @@ rustc_version = "0.2" [dependencies] pwasm-alloc = { path = "../wasm-runtime/pwasm-alloc" } pwasm-libc = { path = "../wasm-runtime/pwasm-libc" } -substrate-runtime-std = { path = "../runtime-std" } +substrate-runtime-std = { path = "../runtime-std", default_features = false } environmental = { path = "../environmental", optional = true } substrate-state-machine = { path = "../state-machine", optional = true } substrate-primitives = { path = "../primitives", default_features = false } diff --git a/substrate/wasm-runtime/polkadot/src/lib.rs b/substrate/wasm-runtime/polkadot/src/lib.rs index 6c92c8aa13..72e2d23c50 100644 --- a/substrate/wasm-runtime/polkadot/src/lib.rs +++ b/substrate/wasm-runtime/polkadot/src/lib.rs @@ -25,9 +25,6 @@ extern crate substrate_runtime_io as runtime_io; #[cfg(feature = "std")] extern crate rustc_hex; -#[cfg(feature = "with-std")] -#[macro_use] -extern crate log; extern crate substrate_codec as codec; extern crate substrate_primitives; diff --git a/substrate/wasm-runtime/polkadot/src/runtime/system.rs b/substrate/wasm-runtime/polkadot/src/runtime/system.rs index 269a9bc31e..6eb6229470 100644 --- a/substrate/wasm-runtime/polkadot/src/runtime/system.rs +++ b/substrate/wasm-runtime/polkadot/src/runtime/system.rs @@ -202,15 +202,15 @@ fn post_finalise(header: &Header) { storage::put(&header.number.to_keyed_vec(BLOCK_HASH_AT), &header.blake2_256()); } -#[cfg(feature = "with-std")] +#[cfg(feature = "std")] fn info_expect_equal_hash(given: &Hash, expected: &Hash) { use support::HexDisplay; if given != expected { - info!("Hash: given={}, expected={}", HexDisplay::from(given), HexDisplay::from(expected)); + println!("Hash: given={}, expected={}", HexDisplay::from(&given.0), HexDisplay::from(&expected.0)); } } -#[cfg(not(feature = "with-std"))] +#[cfg(not(feature = "std"))] fn info_expect_equal_hash(_given: &Hash, _expected: &Hash) {} #[cfg(test)] diff --git a/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.compact.wasm b/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.compact.wasm index ce296a5814..2af0747ed1 100644 Binary files a/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.compact.wasm and b/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.compact.wasm differ diff --git a/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.wasm b/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.wasm index a6831997d4..f89b2a1d9b 100644 Binary files a/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.wasm and b/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_polkadot.wasm differ diff --git a/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_test.compact.wasm b/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_test.compact.wasm index d317445bea..3c4e94098f 100644 Binary files a/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_test.compact.wasm and b/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_test.compact.wasm differ diff --git a/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_test.wasm b/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_test.wasm index 0c77df8679..6a79823c53 100644 Binary files a/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_test.wasm and b/substrate/wasm-runtime/target/wasm32-unknown-unknown/release/runtime_test.wasm differ