mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 13:57:58 +00:00
compile please
This commit is contained in:
+7
-5
@@ -86,17 +86,19 @@ pub async fn test_embedded_client() {
|
||||
let bob_address = AccountKeyring::Bob.to_account_id().into();
|
||||
|
||||
// verify that we can call dispatchable functions
|
||||
let result = api
|
||||
let success = api
|
||||
.tx()
|
||||
.balances()
|
||||
.transfer(bob_address, 100_000_000_000_000_000)
|
||||
.sign_and_submit_then_watch(&alice)
|
||||
.await
|
||||
.unwrap()
|
||||
.wait_for_finalized_success()
|
||||
.await
|
||||
.unwrap()
|
||||
.has_event::<system::events::ExtrinsicSuccess>()
|
||||
.unwrap();
|
||||
|
||||
// verify that we receive events
|
||||
let success = result
|
||||
.find_event::<system::events::ExtrinsicSuccess>()
|
||||
.unwrap();
|
||||
assert!(success.is_some());
|
||||
assert!(success);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user