Get account nonce via state_call (#1002)

This commit is contained in:
James Wilson
2023-06-07 16:15:22 +01:00
committed by GitHub
parent 1ad9a20ce2
commit e711dc1582
3 changed files with 11 additions and 18 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ pub use substrate::SubstrateConfig;
pub trait Config: 'static {
/// Account index (aka nonce) type. This stores the number of previous
/// transactions associated with a sender account.
type Index: Debug + Copy + DeserializeOwned + Into<u64>;
type Index: Debug + Copy + Decode + Into<u64>;
/// The output of the `Hasher` function.
type Hash: Debug
@@ -42,7 +42,7 @@ pub trait Config: 'static {
+ PartialEq;
/// The account ID type.
type AccountId: Debug + Clone + Serialize;
type AccountId: Debug + Clone + Encode;
/// The address type.
type Address: Debug + Encode + From<Self::AccountId>;