-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat: refactored convert command logic to fix issues #921
Conversation
6d074c1
to
3254cbf
Compare
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.
Some minor optional comments - lgtm
const baseName = path.basename(filePath, extension); | ||
let config; | ||
|
||
console.log(extension); |
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.
Is this log intended?
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, good catch 🎯
const collator = { | ||
name: "alice", | ||
command: bin, | ||
p2p_port: +port, |
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.
p2p_port: +port, | |
p2p_port: +port, |
nice usage of unary operator!
parachains: ParachainConfig[]; | ||
simpleParachains: SimpleParachainConfig[]; | ||
hrmpChannels: HrmpChannelsConfig[]; | ||
types: any; |
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.
This eventually will byte us in the ass; Maybe add a normal type if possible?
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.
Well, I have used the exact type used by the Polkadot Launch repo: https://github.com/paritytech/polkadot-launch/blob/master/src/types.d.ts to have maximum compatibility and minimum issues so I would prefer to keep it to avoid unwanted behavior in the future, wdyt ?
3254cbf
to
746fc2d
Compare
Thanks @l0r1s ! |
Refactoring of the convert command logic to take into accounts ports and missing values:
Input polkadot launch config:
Output zombienet config: