-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix(processor): fix generic enum names #179
Conversation
@@ -74,7 +74,7 @@ export default class Parser extends BaseParser { | |||
|
|||
const result: EnumType = { | |||
type: 'enum', | |||
name: uncapitalize(type.lookupName), | |||
name: uncapitalize(type.lookupName).replace('IngressEgress', this.getPalletName()), |
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 fix
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.
name: uncapitalize(type.lookupName).replace('IngressEgress', this.getPalletName()), | |
name: uncapitalize(type.lookupName).replace(/^IngressEgress/, this.getPalletName()), |
is it necessary to make it a bit more strict maybe?
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.
no this should be ok, the name looks like PalletCfIngressEgressDepositFailedDetails
and we just need to insert the chain in there somewhere to make it distinct
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 pallet name is like SolanaIngressEgress
, so it just adds the chain name
@@ -74,7 +74,7 @@ export default class Parser extends BaseParser { | |||
|
|||
const result: EnumType = { | |||
type: 'enum', | |||
name: uncapitalize(type.lookupName), | |||
name: uncapitalize(type.lookupName).replace('IngressEgress', this.getPalletName()), |
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.
name: uncapitalize(type.lookupName).replace('IngressEgress', this.getPalletName()), | |
name: uncapitalize(type.lookupName).replace(/^IngressEgress/, this.getPalletName()), |
is it necessary to make it a bit more strict maybe?
No description provided.