-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type generation for launchpad code #1001
Conversation
@@ -45,6 +53,30 @@ const fetchWizardData = (req: string): Promise<WizardResponse> => { | |||
return request<WizardResponse>('launchpad-create-indexer', req); | |||
}; | |||
|
|||
const generateCode = async (contractFilter: string, selectedMethods: Method[], selectedEvents?: Event[]) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function name "generateCode" has been reused multiple times and each time it does something different. Can you rename all of these instances to be more specific? No two functions should ever be the same unless they're in entirely different projects or attached to some class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
types are now generated for launchpad code