mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
BREAKING: Rename Call & Event (#11981)
* rename Event to RuntimeEvent * rename Call * rename in runtimes * small fix * rename Event * small fix & rename RuntimeCall back to Call for now * small fixes * more renaming * a bit more renaming * fmt * small fix * commit * prep for renaming associated types * fix * rename associated Event type * rename to RuntimeEvent * commit * merge conflict fixes & fmt * additional renaming * fix. * fix decl_event * rename in tests * remove warnings * remove accidental rename * . * commit * update .stderr * fix in test * update .stderr * TRYBUILD=overwrite * docs * fmt * small change in docs * rename PalletEvent to Event * rename Call to RuntimeCall * renamed at wrong places :P * rename Call * rename * rename associated type * fix * fix & fmt * commit * frame-support-test * passing tests * update docs * rustdoc fix * update .stderr * wrong code in docs * merge fix * fix in error message * update .stderr * docs & error message * . * merge fix * merge fix * fmt * fmt * merge fix * more fixing * fmt * remove unused * fmt * fix Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -455,7 +455,7 @@ impl From<Origin> for Result<frame_system::Origin<Runtime>, Origin> {
|
||||
}
|
||||
|
||||
impl frame_support::traits::OriginTrait for Origin {
|
||||
type Call = <Runtime as frame_system::Config>::Call;
|
||||
type Call = <Runtime as frame_system::Config>::RuntimeCall;
|
||||
type PalletsOrigin = Origin;
|
||||
type AccountId = <Runtime as frame_system::Config>::AccountId;
|
||||
|
||||
@@ -501,9 +501,9 @@ impl frame_support::traits::OriginTrait for Origin {
|
||||
}
|
||||
|
||||
#[derive(Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug, TypeInfo)]
|
||||
pub struct Event;
|
||||
pub struct RuntimeEvent;
|
||||
|
||||
impl From<frame_system::Event<Runtime>> for Event {
|
||||
impl From<frame_system::Event<Runtime>> for RuntimeEvent {
|
||||
fn from(_evt: frame_system::Event<Runtime>) -> Self {
|
||||
unimplemented!("Not required in tests!")
|
||||
}
|
||||
@@ -585,7 +585,7 @@ impl frame_system::Config for Runtime {
|
||||
type BlockWeights = RuntimeBlockWeights;
|
||||
type BlockLength = RuntimeBlockLength;
|
||||
type Origin = Origin;
|
||||
type Call = Extrinsic;
|
||||
type RuntimeCall = Extrinsic;
|
||||
type Index = u64;
|
||||
type BlockNumber = u64;
|
||||
type Hash = H256;
|
||||
@@ -593,7 +593,7 @@ impl frame_system::Config for Runtime {
|
||||
type AccountId = u64;
|
||||
type Lookup = IdentityLookup<Self::AccountId>;
|
||||
type Header = Header;
|
||||
type Event = Event;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type BlockHashCount = ConstU64<2400>;
|
||||
type DbWeight = ();
|
||||
type Version = ();
|
||||
|
||||
Reference in New Issue
Block a user