Closed stranger80 closed 2 months ago
If we have multiple contracts wit the same name, those "duplicating" names will be
labelled with additional info (ContractName (<file_name>)) in the item
(Priority 2) ...and tooltip showing full path (<path>/<file_name>)
Upon closer examination of the codebase, it appears this feature should be implemented as a separate issue. It requires careful state modifications that are closely tied to the deploy contract functionality. For the sake of avoiding unintended side effects, it's recommended to handle this as a distinct task.
Looking forward to this update. Seems a lot of people are still having friction with the warning.
We have added updates on our side as well.
Fixed as part of 0.4.2 release.
Now there are two Compile options in the plugin:
contracts
directory.Compile <file-name>
button. Very helpful!
Refactor the Compile feature to follow the requirements mentioned below:
Have 2 buttons: "Compile <>" and "Compile project"
The "Compile <>" button:
hardhat compile ./Storage.sol
) shall be executed_Note: this feature requires backend API change: we add an optional parameter to specify the location of the single file selected for compilation (call it
target_path
), which if specified implies the "single file compilation' Hardhat call. Eg. if a file in root is selected, pass./
, if a file indeps
folder is selected, pass./deps
)_The "Compile project" button:
hardhat compile
command)ContractName (<file_name>)
) in the item<path>/<file_name>
)