mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 22:55:43 +00:00
Use new AccountInfo struct for "System Account" storage data (#71)
* Add AccountInfo struct for "System Account" data * Fmt * Simplify AccountInfo struct constraints
This commit is contained in:
+2
-2
@@ -311,7 +311,7 @@ impl<T: System + Balances + Sync + Send + 'static, S: 'static> Client<T, S> {
|
||||
let account_id = S::Signer::from(signer.public()).into_account();
|
||||
let nonce = match nonce {
|
||||
Some(nonce) => nonce,
|
||||
None => self.account(account_id).await?.0,
|
||||
None => self.account(account_id).await?.nonce,
|
||||
};
|
||||
|
||||
let genesis_hash = self.genesis_hash;
|
||||
@@ -561,7 +561,7 @@ mod tests {
|
||||
let result: Result<_, Error> = async_std::task::block_on(async move {
|
||||
let account = AccountKeyring::Alice.to_account_id();
|
||||
let client = test_client().await;
|
||||
let balance = client.account(account.into()).await?.1.free;
|
||||
let balance = client.account(account.into()).await?.data.free;
|
||||
Ok(balance)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user