Uh oh!
There was an error while loading. Please reload this page.
feat: upgrade to Polkadot v0.9.32 - #434
Conversation
| type Event = Event; | ||
| type Call = Call; | ||
| type RuntimeEvent = RuntimeEvent; | ||
| type RuntimeCall = RuntimeCall; |
There was a problem hiding this comment.
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.
You are right. Will fix that!
| type Call = Call; | ||
| type Origin = Origin; | ||
| type RuntimeEvent = RuntimeEvent; | ||
| type Call = RuntimeCall; |
There was a problem hiding this comment.
The sudo pallet uses RuntimeCall, so I guess we should use the same here.
| type Origin = Origin; | ||
| type RuntimeEvent = RuntimeEvent; | ||
| type Call = RuntimeCall; | ||
| type Origin = RuntimeOrigin; |
There was a problem hiding this comment.
I am not sure at this point if keeping Origin makes sense anymore, or if we should also rename this to RuntimeOrigin.
| #[cfg(feature = "runtime-benchmarks")] | ||
| #[macro_use] | ||
| extern crate frame_benchmarking; |
There was a problem hiding this comment.
Interesting.. Why do we need this here?
There was a problem hiding this comment.
Can't this simply be done inside the benche module, since everything only exist for runtime-benchmarks?
There was a problem hiding this comment.
We're just following upstream here. See this comment.
There was a problem hiding this comment.
Can we add a comment in code why we have this there?
| }), | ||
| #[cfg(not(feature = "runtime-benchmarks"))] | ||
| (BenchmarkCmd::Storage(_), _) => { | ||
| return Err(sc_cli::Error::Input( |
There was a problem hiding this comment.
Clippy noticed the return statement is unneeded.
| #[cfg(feature = "try-runtime")] | ||
| use frame_support::traits::OnRuntimeUpgradeHelpersExt; | ||
| use frame_support::codec::{Decode, Encode}; |
weichweich
left a comment
There was a problem hiding this comment.
Would like to have some insight on a few changes. Looks good otherwise. Nice set of changes that were included in the last updates.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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), ...)