mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 04:31:08 +00:00
Fix optional store items. (#120)
* Fix optional store items. * Support querying a block hash.
This commit is contained in:
@@ -117,8 +117,8 @@ async fn transfer_balance_example() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let alice = AccountKeyring::Alice.to_account_id();
|
||||
let bob = AccountKeyring::Bob.to_account_id();
|
||||
|
||||
let alice_account = client.account(&alice).await?;
|
||||
let bob_account = client.account(&bob).await?;
|
||||
let alice_account = client.account(&alice, None).await?;
|
||||
let bob_account = client.account(&bob, None).await?;
|
||||
let pre = (alice_account, bob_account);
|
||||
|
||||
let _hash = client
|
||||
@@ -138,8 +138,8 @@ async fn transfer_balance_example() -> Result<(), Box<dyn std::error::Error>> {
|
||||
})
|
||||
);
|
||||
|
||||
let alice_account = client.account(&alice).await?;
|
||||
let bob_account = client.account(&bob).await?;
|
||||
let alice_account = client.account(&alice, None).await?;
|
||||
let bob_account = client.account(&bob, None).await?;
|
||||
let post = (alice_account, bob_account);
|
||||
|
||||
assert_eq!(pre.0.free, post.0.free - 10_000);
|
||||
|
||||
Reference in New Issue
Block a user