Remove fallbacks and simply error

This commit is contained in:
emostov
2020-12-22 18:50:25 -08:00
parent 039c82a2a5
commit b617815f6a
3 changed files with 44 additions and 32 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let signer = PairSigner::new(AccountKeyring::Alice.pair());
let dest = AccountKeyring::Bob.to_account_id().into();
let client = ClientBuilder::<KusamaRuntime>::new().build().await?;
let client = ClientBuilder::<KusamaRuntime>::new().build().await?;
let hash = client.transfer(&signer, &dest, 10_000).await?;
println!("Balance transfer extrinsic submitted: {}", hash);