mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 23:01:01 +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:
@@ -153,7 +153,7 @@ benchmarks! {
|
||||
};
|
||||
}: _(RawOrigin::Signed(caller.clone()), Box::new(create_identity_info::<T>(x)))
|
||||
verify {
|
||||
assert_last_event::<T>(Event::<T>::IdentitySet(caller).into());
|
||||
assert_last_event::<T>(Event::<T>::IdentitySet { who: caller }.into());
|
||||
}
|
||||
|
||||
// We need to split `set_subs` into two benchmarks to accurately isolate the potential
|
||||
@@ -237,7 +237,7 @@ benchmarks! {
|
||||
};
|
||||
}: _(RawOrigin::Signed(caller.clone()), r - 1, 10u32.into())
|
||||
verify {
|
||||
assert_last_event::<T>(Event::<T>::JudgementRequested(caller, r-1).into());
|
||||
assert_last_event::<T>(Event::<T>::JudgementRequested { who: caller, registrar_index: r-1 }.into());
|
||||
}
|
||||
|
||||
cancel_request {
|
||||
@@ -257,7 +257,7 @@ benchmarks! {
|
||||
Identity::<T>::request_judgement(caller_origin, r - 1, 10u32.into())?;
|
||||
}: _(RawOrigin::Signed(caller.clone()), r - 1)
|
||||
verify {
|
||||
assert_last_event::<T>(Event::<T>::JudgementUnrequested(caller, r-1).into());
|
||||
assert_last_event::<T>(Event::<T>::JudgementUnrequested { who: caller, registrar_index: r-1 }.into());
|
||||
}
|
||||
|
||||
set_fee {
|
||||
@@ -328,7 +328,7 @@ benchmarks! {
|
||||
Identity::<T>::request_judgement(user_origin.clone(), r, 10u32.into())?;
|
||||
}: _(RawOrigin::Signed(caller), r, user_lookup, Judgement::Reasonable)
|
||||
verify {
|
||||
assert_last_event::<T>(Event::<T>::JudgementGiven(user, r).into())
|
||||
assert_last_event::<T>(Event::<T>::JudgementGiven { target: user, registrar_index: r }.into())
|
||||
}
|
||||
|
||||
kill_identity {
|
||||
|
||||
Reference in New Issue
Block a user