底物分叉升级教程,Pallet_scheduler有破坏性的更改

发布于 2025-01-24 23:46:29 字数 1060 浏览 4 评论 0原文

我正在关注 https://docs.substrate.io/tutorials/tutorials/tutorials/v3/forkless-forkless-extless-forkless-extless-forkless-less-less--forkless-less--forkless-less--forkless-exhipless.io升级/并添加了

pallet-scheduler = {default-features = false,git =“ https://github.com/paritytech/substrate.git”,branch =“ polkadot-v0.9.9.19” }到我的cargo.toml

看来这似乎是一个较新的版本,需要我指定nopreimagePostponementpreimageProvider in pallet_scheduler :: config

这是确切的错误消息: 错误[E0046]:并非所有已实施的特征项目,缺少:preimageProvider,nopreimagePostponement

我应该设置这些值是什么? httpps:> https:// https://pallet-scheduler/pallet-scheduler/pallatest/pallatest/pallet_sscheded_ssched_sschsche- trait.config.html 似乎还没有这些属性,我猜板条箱尚未发布。

I am following https://docs.substrate.io/tutorials/v3/forkless-upgrades/ and have added

pallet-scheduler = { default-features = false, git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.19" } to my Cargo.toml.

It seems that this appears to be a newer version and requires me to specify NoPreimagePostponement and PreimageProvider in pallet_scheduler::Config.

Here is the exact error message:
error[E0046]: not all trait items implemented, missing: PreimageProvider, NoPreimagePostponement

What should I set those value to be? https://docs.rs/pallet-scheduler/latest/pallet_scheduler/trait.Config.html doesn't seem to also have those properties and I'm guessing that the crate hasn't been published yet.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

表情可笑 2025-01-31 23:46:29

关联的拉请请求提到了必要的更改。简而言之,只需设置以下内容即可模仿所需的行为:

type PreimageProvider = ();
type NoPreimagePostponement = ();

The associated pull request mentions the changes necessary. In short, just set the following to imitate the desired behavior:

type PreimageProvider = ();
type NoPreimagePostponement = ();
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文