Is it possible to import only some function from hardhat or plugins? #3081
-
Is it possible to do smth like this using Typescript:
For example, I can do this: And if so, will it take up less space or load faster? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In general you can't use any Hardhat functionality if the HRE (the Hardhat environment) is not loaded. We are going to work in the future on making Hardhat more modular (starting from being able to create a Hardhat network without having a Hardhat project), but things like |
Beta Was this translation helpful? Give feedback.
In general you can't use any Hardhat functionality if the HRE (the Hardhat environment) is not loaded. We are going to work in the future on making Hardhat more modular (starting from being able to create a Hardhat network without having a Hardhat project), but things like
getContractAt
are very much tied to a Hardhat project.