mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
Trivial cleaning
This commit is contained in:
@@ -30,11 +30,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let dest = AccountKeyring::Bob.to_account_id().into();
|
||||
|
||||
let client = ClientBuilder::<KusamaRuntime>::new().build().await?;
|
||||
let hash = client.transfer(
|
||||
&signer,
|
||||
&dest,
|
||||
10_000
|
||||
).await?;
|
||||
let hash = client.transfer(&signer, &dest, 10_000).await?;
|
||||
|
||||
println!("Balance transfer extrinsic submitted: {}", hash);
|
||||
|
||||
|
||||
@@ -33,11 +33,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let dest = AccountKeyring::Bob.to_account_id().into();
|
||||
|
||||
let client = ClientBuilder::<DefaultNodeRuntime>::new().build().await?;
|
||||
let result = client.transfer_and_watch(
|
||||
&signer,
|
||||
&dest,
|
||||
10_000
|
||||
).await?;
|
||||
let result = client.transfer_and_watch(&signer, &dest, 10_000).await?;
|
||||
|
||||
if let Some(event) = result.transfer()? {
|
||||
println!("Balance transfer success: value: {:?}", event.amount);
|
||||
|
||||
Reference in New Issue
Block a user