mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 17:17:56 +00:00
Add field names to pallet Event variants (#9993)
* convert pallet-assets events to struct types * updated events of a couple pallets * updated pallet event field names * update pallet event field names * updated events in test files * cargo fmt * minorfixes * fix assertion error * minor fix * formatting fix * fmt
This commit is contained in:
@@ -114,7 +114,10 @@ fn should_deposit_event() {
|
||||
System::events(),
|
||||
vec![EventRecord {
|
||||
phase: Phase::Initialization,
|
||||
event: Event::Offences(crate::Event::Offence(KIND, time_slot.encode())),
|
||||
event: Event::Offences(crate::Event::Offence {
|
||||
kind: KIND,
|
||||
timeslot: time_slot.encode()
|
||||
}),
|
||||
topics: vec![],
|
||||
}]
|
||||
);
|
||||
@@ -145,7 +148,10 @@ fn doesnt_deposit_event_for_dups() {
|
||||
System::events(),
|
||||
vec![EventRecord {
|
||||
phase: Phase::Initialization,
|
||||
event: Event::Offences(crate::Event::Offence(KIND, time_slot.encode())),
|
||||
event: Event::Offences(crate::Event::Offence {
|
||||
kind: KIND,
|
||||
timeslot: time_slot.encode()
|
||||
}),
|
||||
topics: vec![],
|
||||
}]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user