mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 11:21:07 +00:00
Custom extra (#89)
* Run rustfmt. * Make extra customizable. * Update to alpha 6.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user