【问题标题】:Substrate mock error the trait bound `Test: frame_system::pallet::Config` is not satisfied基板模拟错误特征绑定`Test:frame_system::pallet::Config`不满足
【发布时间】:2022-03-25 04:04:19
【问题描述】:

我在 Substrate 节点模板中创建了一个托盘并尝试创建模拟

已经为 Config 创建了实现,如下所示

impl frame_system::pallet::Config for Test {
    type BaseCallFilter = Everything;
    type BlockWeights = ();
    type BlockLength = ();
    type Origin = Origin;
    type Call = Call;
    type Index = u64;
    type BlockNumber = BlockNumber;
    type Hash = H256;
    type Hashing = BlakeTwo256;
    type AccountId = AccountId;
    type Lookup = IdentityLookup<Self::AccountId>;
    type Header = Header;
    type Event = Event;
    type BlockHashCount = BlockHashCount;
    type DbWeight = ();
    type Version = ();
    type PalletInfo = PalletInfo;
    type AccountData = pallet_balances::AccountData<Balance>;
    type OnNewAccount = ();
    type OnKilledAccount = ();
    type SystemWeightInfo = ();
    type SS58Prefix = SS58Prefix;
    type OnSetCode = ();
    type MaxConsumers = frame_support::traits::ConstU32<16>;
}

但是我收到了 ^ the trait frame_system::pallet::Configis not implemented forTest 的错误,这已经实现了。如何解决这个问题?

标签: rust substrate


【解决方案1】:

这是由于 Substrate Polkadot Version and Closing 的版本更新

【讨论】:

猜你喜欢
  • 2021-03-28
  • 2019-12-29
  • 2021-03-30
  • 2021-07-29
  • 1970-01-01
  • 2022-11-30
  • 1970-01-01
  • 1970-01-01
  • 2021-06-23
相关资源
最近更新 更多