Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add field names to pallet Event variants #9903

Open
ascjones opened this issue Sep 30, 2021 · 1 comment
Open

Add field names to pallet Event variants #9903

ascjones opened this issue Sep 30, 2021 · 1 comment
Labels
Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder

Comments

@ascjones
Copy link
Contributor

As per #9896, we can convert other pallets to use struct variants with named fields.

e.g. Instantiated(T::AccountId, T::AccountId) becomes Instantiated { deployer: T::AccountId, contract: T::AccountId }.

These field names and their respective comments are in turn reflected in the metadata for a better client experience.

@ascjones ascjones added the Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder label Sep 30, 2021
@Wizdave97
Copy link
Contributor

PIcking this up

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z1-easy Can be fixed primarily by duplicating and adapting code by an intermediate coder
Projects
None yet
Development

No branches or pull requests

2 participants