diff --git a/templates/example-contracts/hardhat/packages/hardhat/deploy/00_deploy_your_contract.ts b/templates/example-contracts/hardhat/packages/hardhat/deploy/00_deploy_your_contract.ts index ad5ed13c3..6c8f75892 100644 --- a/templates/example-contracts/hardhat/packages/hardhat/deploy/00_deploy_your_contract.ts +++ b/templates/example-contracts/hardhat/packages/hardhat/deploy/00_deploy_your_contract.ts @@ -1,5 +1,4 @@ -import { deployScript } from "../rocketh/deploy.js"; -import * as artifacts from "../generated/artifacts/index.js"; +import { deployScript, artifacts } from "../rocketh/deploy.js"; /** * Deploys a contract named "YourContract" using the deployer account and diff --git a/templates/solidity-frameworks/hardhat/packages/hardhat/hardhat.config.ts.template.mjs b/templates/solidity-frameworks/hardhat/packages/hardhat/hardhat.config.ts.template.mjs index bce814a3b..d697ed3de 100644 --- a/templates/solidity-frameworks/hardhat/packages/hardhat/hardhat.config.ts.template.mjs +++ b/templates/solidity-frameworks/hardhat/packages/hardhat/hardhat.config.ts.template.mjs @@ -3,17 +3,17 @@ import { withDefaults, stringify, deepMerge } from "../../../../utils.js"; const defaultConfig = { plugins: '$$[hardhatToolbox, HardhatDeploy]$$', solidity: { - profiles: { - default: { + compilers: [ + { version: "0.8.30", settings: { optimizer: { enabled: true, runs: 200, }, - }, - }, - }, + } + } + ], }, generateTypedArtifacts: { destinations: [ diff --git a/templates/solidity-frameworks/hardhat/packages/hardhat/rocketh/deploy.ts b/templates/solidity-frameworks/hardhat/packages/hardhat/rocketh/deploy.ts index 442cc176a..1a4bb2eb3 100644 --- a/templates/solidity-frameworks/hardhat/packages/hardhat/rocketh/deploy.ts +++ b/templates/solidity-frameworks/hardhat/packages/hardhat/rocketh/deploy.ts @@ -3,3 +3,5 @@ import { setupDeployScripts } from "rocketh"; const { deployScript } = setupDeployScripts(extensions); export { deployScript }; + +export * as artifacts from "../generated/artifacts/index.js";