【发布时间】: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 的错误,这已经实现了。如何解决这个问题?
-
请使用substrate.stackexchange.com。因为它将帮助它上市。谢谢