mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 02:21:14 +00:00
cargo fmt
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ description = "Embed a substrate node into your subxt application."
|
||||
keywords = ["parity", "substrate", "blockchain"]
|
||||
|
||||
[dependencies]
|
||||
async-std = "1.8.0"
|
||||
async-std = { version = "1.8.0", features = ["tokio1"] }
|
||||
futures = "0.3.9"
|
||||
jsonrpsee = { git = "https://github.com/paritytech/jsonrpsee/", branch = "extract-async-client", features = ["client"] }
|
||||
log = "0.4.13"
|
||||
|
||||
+27
-4
@@ -1,7 +1,19 @@
|
||||
use node_cli::service::NewFullBase;
|
||||
use sp_keyring::AccountKeyring;
|
||||
use subxt::{ClientBuilder, PairSigner};
|
||||
use test_runtime::node_runtime::{self, system, DefaultConfig}
|
||||
// Copyright 2019-2021 Parity Technologies (UK) Ltd.
|
||||
// This file is part of subxt.
|
||||
//
|
||||
// subxt is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// subxt is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with subxt. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use crate::{
|
||||
DatabaseSource,
|
||||
KeystoreConfig,
|
||||
@@ -10,7 +22,18 @@ use crate::{
|
||||
SubxtClientConfig,
|
||||
WasmExecutionMethod,
|
||||
};
|
||||
use node_cli::service::NewFullBase;
|
||||
use sp_keyring::AccountKeyring;
|
||||
use subxt::{
|
||||
ClientBuilder,
|
||||
PairSigner,
|
||||
};
|
||||
use tempdir::TempDir;
|
||||
use test_runtime::node_runtime::{
|
||||
self,
|
||||
system,
|
||||
DefaultConfig,
|
||||
};
|
||||
|
||||
#[async_std::test]
|
||||
pub async fn test_embedded_client() {
|
||||
|
||||
Reference in New Issue
Block a user