About deploying single contract #209
Answered
by
mattjaf
Aamirusmani1552
asked this question in
Q&A
-
Is there a way to deploy only single contract from a contract folder. |
Beta Was this translation helpful? Give feedback.
Answered by
mattjaf
Jun 12, 2022
Replies: 2 comments 2 replies
-
pragma solidity ^0.8.7;
import "./SimpleStorage.sol";
contract StorageFactory {
SimpleStorage public simpleStorage;
function createSimpleStorageContract() public {
simpleStorage = new SimpleStorage();
}
} @Aamirusmani1552 this way you can deploy only a single contract. |
Beta Was this translation helpful? Give feedback.
1 reply
-
with hardhat you can add tags, such as then if your referring to concatenating the solidity files into 1, there's an npm package called |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
PatrickAlphaC
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with hardhat you can add tags, such as
module.exports.tags = ['contract1']
at the bottom of your scripts or something like thatthen
npx hardhat deploy --tags contract1
if your referring to concatenating the solidity files into 1, there's an npm package called
Sol-Merger