-
Notifications
You must be signed in to change notification settings - Fork 47
feat: upgrade to Polkadot v0.9.32 #434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| type Event = Event; | ||
| type Call = Call; | ||
| type RuntimeEvent = RuntimeEvent; | ||
| type RuntimeCall = RuntimeCall; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description says that the convetion seems to be to keep using Call, Event, Call etc for pallets, but I see here that that is not really the case. I guess we should also introduce the change in our pallets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Will fix that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
runtimes/standalone/src/lib.rs
Outdated
| type Call = Call; | ||
| type Origin = Origin; | ||
| type RuntimeEvent = RuntimeEvent; | ||
| type Call = RuntimeCall; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sudo pallet uses RuntimeCall, so I guess we should use the same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
runtimes/standalone/src/lib.rs
Outdated
| type Origin = Origin; | ||
| type RuntimeEvent = RuntimeEvent; | ||
| type Call = RuntimeCall; | ||
| type Origin = RuntimeOrigin; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure at this point if keeping Origin makes sense anymore, or if we should also rename this to RuntimeOrigin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| #[cfg(feature = "runtime-benchmarks")] | ||
| #[macro_use] | ||
| extern crate frame_benchmarking; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting.. Why do we need this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this simply be done inside the benche module, since everything only exist for runtime-benchmarks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're just following upstream here. See this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a comment in code why we have this there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nodes/parachain/src/command.rs
Outdated
| }), | ||
| #[cfg(not(feature = "runtime-benchmarks"))] | ||
| (BenchmarkCmd::Storage(_), _) => { | ||
| return Err(sc_cli::Error::Input( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clippy noticed the return statement is unneeded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| #[cfg(feature = "try-runtime")] | ||
| use frame_support::traits::OnRuntimeUpgradeHelpersExt; | ||
| use frame_support::codec::{Decode, Encode}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess these can be combined?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weichweich
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like to have some insight on a few changes. Looks good otherwise. Nice set of changes that were included in the last updates.
fixes KILTProtocol/ticket#2289 and KILTProtocol/ticket#2296
subalfred check featuresin all crates)add+list_benchmark!paritytech/substrate#10592 (see runtime changes in dd81eac)Summary of changes (Polkadot v0.9.30-0.9.32)
Breaking Changes
Origin-->RuntimeOriginCall-->RuntimeCallEvent-->RuntimeEventConvention seems to be to keepUpdate: We useEvent,Call,Originfor inner pallet usage, e.g.Did::OriginRuntimeprefix internally as wellNoteworthy PRs
transactionRPC API paritytech/substrate#12328polkadot-parachain --alice --collator --relay-chain-rpc-url <rpc-websocket-url>wasmtime-based WASM executor by default paritytech/substrate#12486Scheduler, Preimage, Democracy Migration
Callparitytech/substrate#11649Callparitytech/substrate#11649 (comment)Result of
try-runtimeagainst Spiritnet on Friday Nov 18, 2022:Checklist:
array[3]useget(3), ...)