mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-11 13:17:08 +00:00
contracts: Add event field names (#9896)
* Add struct variant fields to contract Event * Update comments and usages * Fmt
This commit is contained in:
1 parent
817d0d26d5
commit
e0742bcd6d
4 files changed
+57
-45
No files matched your search
@@ -59,7 +59,7 @@ where
|
||||
Some(module) => increment_64(&mut module.refcount),
|
||||
None => {
|
||||
*existing = Some(prefab_module);
|
||||
Contracts::<T>::deposit_event(Event::CodeStored(code_hash))
|
||||
Contracts::<T>::deposit_event(Event::CodeStored { code_hash })
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -170,7 +170,7 @@ where
|
||||
T::AccountId: UncheckedFrom<T::Hash> + AsRef<[u8]>,
|
||||
{
|
||||
<PristineCode<T>>::remove(code_hash);
|
||||
Contracts::<T>::deposit_event(Event::CodeRemoved(code_hash))
|
||||
Contracts::<T>::deposit_event(Event::CodeRemoved { code_hash })
|
||||
}
|
||||
|
||||
/// Increment the refcount panicking if it should ever overflow (which will not happen).
|
||||
|
||||
Reference in new issue
Block a user