Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjj9219 committed Jun 20, 2023
1 parent a77e685 commit edd335f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ pub type Ratio = FixedU128;
pub type Rate = FixedU128;

/// Implement this StoredMap to replace https://github.com/paritytech/substrate/blob/569aae5341ea0c1d10426fa1ec13a36c0b64393b/frame/system/src/lib.rs#L1679
/// NOTE: If use module-evm, need regards the account where the system account exists as its
/// balances accounts also exist(This kind of account is usually created by inc_provider),
/// even if it's AccountData is default.
/// NOTE: If use module-evm, need regards existed `frame_system::Account` also exists
/// `pallet_balances::Account`, even if it's AccountData is default. (This kind of account is
/// usually created by inc_provider), so that `repatriate_reserved` can transfer reserved balance to
/// contract account, which is created by `inc_provider`.
pub struct SystemAccountStore<T>(sp_std::marker::PhantomData<T>);
impl<T: frame_system::Config> frame_support::traits::StoredMap<T::AccountId, T::AccountData> for SystemAccountStore<T> {
fn get(k: &T::AccountId) -> T::AccountData {
Expand Down

0 comments on commit edd335f

Please sign in to comment.