mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
Make test-client generic over runtime (#2824)
* Make test-client generic over runtime. * Make sure genesis storage is constructed correctly. * Use prelude in tests. * Add an example of how to use test-client with node/runtime. * Bump version. * Rename test-clients.
This commit is contained in:
committed by
Bastian Köcher
parent
cae324598f
commit
ad2d958248
@@ -16,7 +16,7 @@ proc-macro-crate = "0.1.3"
|
||||
|
||||
[dev-dependencies]
|
||||
client = { package = "substrate-client", path = "../client" }
|
||||
test_client = { package = "substrate-test-client", path = "../test-client" }
|
||||
test-client = { package = "substrate-test-runtime-client", path = "../test-runtime/client" }
|
||||
state_machine = { package = "substrate-state-machine", path = "../state-machine" }
|
||||
runtime_primitives = { package = "sr-primitives", path = "../sr-primitives" }
|
||||
sr-version = { path = "../sr-version" }
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use test_client::{
|
||||
AccountKeyring, runtime::{TestAPI, DecodeFails, Transfer, Header},
|
||||
NativeExecutor, LocalExecutor, TestClientBuilder
|
||||
prelude::*,
|
||||
runtime::{TestAPI, DecodeFails, Transfer, Header},
|
||||
};
|
||||
use runtime_primitives::{
|
||||
generic::BlockId,
|
||||
@@ -190,4 +190,4 @@ fn record_proof_works() {
|
||||
"Core_execute_block",
|
||||
&block.encode(),
|
||||
).expect("Executes block while using the proof backend");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user