cargo fmt

This commit is contained in:
Niklas Adolfsson
2021-11-30 22:34:51 +01:00
parent 212d79f1a6
commit 1a3b5a9fe1
2 changed files with 28 additions and 5 deletions
+1 -1
View File
@@ -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
View File
@@ -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() {