Introduce tests which demonstrate bad wasm compiler.

This commit is contained in:
Gav
2018-01-26 19:26:10 +01:00
parent bbac6f8da1
commit 0b138b0fd5
12 changed files with 96 additions and 30 deletions
+2 -5
View File
@@ -34,7 +34,6 @@ extern crate serde;
extern crate parity_wasm;
extern crate byteorder;
extern crate rustc_hex;
#[macro_use]
extern crate native_runtime;
extern crate runtime_support;
extern crate memcmp;
@@ -53,8 +52,6 @@ mod native_executor;
pub mod error;
/// Creates new RustExecutor for contracts.
pub fn executor() -> wasm_executor::WasmExecutor {
// TODO: check what the code to execute is and use NativeExecutor if the wasm is compiled with
// matches.
wasm_executor::WasmExecutor::default()
pub fn executor() -> native_executor::NativeExecutor {
native_executor::NativeExecutor
}