compile please

This commit is contained in:
Niklas
2022-01-04 18:46:42 +01:00
parent 1551e70ec7
commit 65fb71a8d3
+7 -5
View File
@@ -86,17 +86,19 @@ pub async fn test_embedded_client() {
let bob_address = AccountKeyring::Bob.to_account_id().into(); let bob_address = AccountKeyring::Bob.to_account_id().into();
// verify that we can call dispatchable functions // verify that we can call dispatchable functions
let result = api let success = api
.tx() .tx()
.balances() .balances()
.transfer(bob_address, 100_000_000_000_000_000) .transfer(bob_address, 100_000_000_000_000_000)
.sign_and_submit_then_watch(&alice) .sign_and_submit_then_watch(&alice)
.await .await
.unwrap()
.wait_for_finalized_success()
.await
.unwrap()
.has_event::<system::events::ExtrinsicSuccess>()
.unwrap(); .unwrap();
// verify that we receive events // verify that we receive events
let success = result assert!(success);
.find_event::<system::events::ExtrinsicSuccess>()
.unwrap();
assert!(success.is_some());
} }