我正在跟踪https://docs.substrate.io/tutorials/v3/forkless-upgrades/,并添加了
pallet-scheduler = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.19" }到我的Cargo.toml。
这似乎是一个较新的版本,需要我在NoPreimagePostponement和PreimageProvider中指定pallet_scheduler::Config。
以下是准确的错误消息:error[E0046]: not all trait items implemented, missing: PreimageProvider, NoPreimagePostponement
我应该将这些值设置为什么呢?调度程序/trait.Config.html似乎也没有这些属性,而且我猜这个箱子还没有发布。
发布于 2022-05-16 16:28:30
关联的拉请求提到了必要的更改。简而言之,只需设置以下内容来模仿所期望的行为:
type PreimageProvider = ();
type NoPreimagePostponement = ();https://stackoverflow.com/questions/72056703
复制相似问题