Custom extra (#89)

* Run rustfmt.

* Make extra customizable.

* Update to alpha 6.
This commit is contained in:
David Craven
2020-04-15 09:21:19 +02:00
committed by GitHub
parent bb465782dc
commit 8cf652605f
5 changed files with 101 additions and 86 deletions
+8 -3
View File
@@ -39,8 +39,13 @@ async fn transfer_balance() -> Result<sp_core::H256, Error> {
// note use of `KusamaRuntime`
substrate_subxt::ClientBuilder::<KusamaRuntime>::new()
.build().await?
.xt(signer, None).await?
.submit(balances::transfer::<KusamaRuntime>(dest.clone().into(), 10_000))
.build()
.await?
.xt(signer, None)
.await?
.submit(balances::transfer::<KusamaRuntime>(
dest.clone().into(),
10_000,
))
.await
}