You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In line with the previous item, maybe it's worth adding an optional argument to select the contract that will be printed, defaulting to printing all of them if no argument is passed.
Finally, I think you could avoid making users configure the compiler by overriding the TASK_COMPILE_SOLIDITY_GET_COMPILATION_JOB_FOR_FILE subtask to change the compiler settings. The downside of this approach is that that setting will be enabled for all compilations, but that's probably fine. (You could also override it only when the storage-layout task is used, but that's a bit more involved and has other trade-offs.)
Let me know if you have questions about any of these items!
The text was updated successfully, but these errors were encountered:
Hi, I have some suggestions for this plugin in case you're interested:
Instead of making the user do
await hre.storageLayout.export()
in a script, create a task for that. It's probably just a matter of doing this:And then users can just run
hh storage-layout
In line with the previous item, maybe it's worth adding an optional argument to select the contract that will be printed, defaulting to printing all of them if no argument is passed.
Finally, I think you could avoid making users configure the compiler by overriding the
TASK_COMPILE_SOLIDITY_GET_COMPILATION_JOB_FOR_FILE
subtask to change the compiler settings. The downside of this approach is that that setting will be enabled for all compilations, but that's probably fine. (You could also override it only when thestorage-layout
task is used, but that's a bit more involved and has other trade-offs.)Let me know if you have questions about any of these items!
The text was updated successfully, but these errors were encountered: