Skip to content

Commit

Permalink
fix: redefine account info
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Hill <[email protected]>
  • Loading branch information
gregdhill committed Mar 16, 2021
1 parent f92c3dc commit ab4dd52
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions runtime/src/pallets/frame_system.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
use super::Core;
use core::marker::PhantomData;
use frame_system::AccountInfo;
pub use module_bitcoin::types::H256Le;
use parity_scale_codec::Encode;
use parity_scale_codec::{Decode, Encode};
use std::fmt::Debug;
use substrate_subxt_proc_macro::{module, Store};

#[module]
pub trait System: Core {}

pub type RefCount = u32;

/// Information of an account.
#[derive(Clone, Debug, Eq, PartialEq, Default, Decode, Encode)]
pub struct AccountInfo<Index, AccountData> {
pub nonce: Index,
pub consumers: RefCount,
pub providers: RefCount,
pub data: AccountData,
}

#[derive(Clone, Debug, Eq, PartialEq, Store, Encode)]
pub struct AccountStore<T: System> {
#[store(returns = AccountInfo<T::Index, T::AccountData>)]
Expand Down

0 comments on commit ab4dd52

Please sign in to comment.