-
Notifications
You must be signed in to change notification settings - Fork 683
feat: add __experimental_info export to core #2529
Conversation
return { | ||
version, | ||
fork: { | ||
knownChainIds: Array.from(KNOWN_CHAINIDS) |
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 method seems good enough for me! Earlier you made it sound like there might be a more expansive thing with more info about the various chains, which might be nice for later, but if that's a bunch more work, well, knownChainIds
does the job! :)
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.
Oh yeah, we could potentially stuff a whole bunch of interesting stuff in here in the future.
96d6c7f
to
47d583d
Compare
892c68f
to
0e9642f
Compare
12e1b40
to
e837d85
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.
Seems good to me! Maybe more can go here in the future, but this should be good enough for now.
This is an internal and private feature for Truffle. Truffle needed a way to programmatically get the list of chains Ganache fully supports in order to enable the dry-run feature for those chains.
This introduces a new experimental and private (this will likely change in a future release!)
__experimental_info
export: