首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >衬底模拟错误特性绑定测试: frame_system::pallet::Config`不满足

衬底模拟错误特性绑定测试: frame_system::pallet::Config`不满足
EN

Stack Overflow用户
提问于 2022-03-24 07:50:41
回答 1查看 346关注 0票数 0

我已经在基板节点模板中创建了一个托盘,并试图创建模拟。

已经为Config创建了如下实现

代码语言:javascript
复制
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>;
}

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

EN

回答 1

Stack Overflow用户

发布于 2022-03-24 20:04:19

这是由于基板Polkadot版本上的版本更新和关闭造成的。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71598734

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档