diff --git a/content/md/en/docs/reference/account-data-structures.md b/content/md/en/docs/reference/account-data-structures.md index d60d4b224..2c8e02341 100644 --- a/content/md/en/docs/reference/account-data-structures.md +++ b/content/md/en/docs/reference/account-data-structures.md @@ -20,7 +20,7 @@ pub type Account = StorageMap< _, Blake2_128Concat, T::AccountId, - AccountInfo, + AccountInfo, ValueQuery, >; ``` @@ -29,7 +29,7 @@ The `StorageMap` for an `Account` consists of the following parameters: - The first parameter (\_) is used in macro expansion. - `Blake2_128Concat` specifies the hashing algorithm to use. -- `T::AccountId` is used as the key for over the `AccountInfo` struct. +- `T::AccountId` is used as the key for over the `AccountInfo` struct. See [`StorageMap` API](https://paritytech.github.io/substrate/master/frame_support/storage/types/struct.StorageMap.html#impl) for details. @@ -39,9 +39,9 @@ The `AccountInfo` for an account is defined in the [`frame_system` pallet](https ```rust #[derive(Clone, Eq, PartialEq, Default, RuntimeDebug, Encode, Decode)] -pub struct AccountInfo { +pub struct AccountInfo { /// The number of transactions this account has sent. - pub nonce: Index, + pub nonce: Nonce, /// The number of other modules that currently depend on this account's existence. The account /// cannot be reaped until this is zero. pub consumers: RefCount, diff --git a/content/md/en/docs/tutorials/build-application-logic/add-offchain-workers.md b/content/md/en/docs/tutorials/build-application-logic/add-offchain-workers.md index e7902b509..a253a3f0b 100644 --- a/content/md/en/docs/tutorials/build-application-logic/add-offchain-workers.md +++ b/content/md/en/docs/tutorials/build-application-logic/add-offchain-workers.md @@ -243,7 +243,7 @@ To enable offchain workers to send signed transactions: call: RuntimeCall, public: ::Signer, account: AccountId, - nonce: Index, + nonce: Nonce, ) -> Option<(RuntimeCall, ::SignaturePayload)> { let tip = 0; // take the biggest period possible.