我已经在基板节点模板中创建了一个托盘,并试图创建模拟。
已经为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>;
}但是,作为已经实现的frame_system::pallet::Configis not implemented forTest ^ the trait,我收到了一些错误。如何解决这个问题?
发布于 2022-03-24 20:04:19
这是由于基板Polkadot版本上的版本更新和关闭造成的。
https://stackoverflow.com/questions/71598734
复制相似问题