Eradicate native_equivalent (#3494)

* Add ability to supply extra storage in test-client

* Don't use native_equivalent in tests.

* Get rid of native_equivalent

* Try to make fields private

* Apply Basti's suggestions

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Sergei Pepyakin
2019-08-27 22:20:47 +02:00
committed by GitHub
parent 095c7de7ff
commit 36ef4c067b
9 changed files with 70 additions and 51 deletions
+4 -2
View File
@@ -54,8 +54,7 @@ mod tests {
native_executor_instance!(
Executor,
test_client::runtime::api::dispatch,
test_client::runtime::native_version,
test_client::runtime::WASM_BINARY
test_client::runtime::native_version
);
fn executor() -> executor::NativeExecutor<Executor> {
@@ -153,6 +152,7 @@ mod tests {
vec![AccountKeyring::One.into(), AccountKeyring::Two.into()],
1000,
None,
vec![],
).genesis_map();
let genesis_hash = insert_genesis_block(&mut storage);
@@ -181,6 +181,7 @@ mod tests {
vec![AccountKeyring::One.into(), AccountKeyring::Two.into()],
1000,
None,
vec![],
).genesis_map();
let genesis_hash = insert_genesis_block(&mut storage);
@@ -209,6 +210,7 @@ mod tests {
vec![AccountKeyring::One.into(), AccountKeyring::Two.into()],
68,
None,
vec![],
).genesis_map();
let genesis_hash = insert_genesis_block(&mut storage);