mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +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();
|
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());
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user