Skip to content

Commit

Permalink
add back hardhat config
Browse files Browse the repository at this point in the history
  • Loading branch information
eutopian committed Nov 15, 2024
1 parent d24ebe7 commit 9804fe8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
13 changes: 13 additions & 0 deletions contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,19 @@ let config = {
version: '0.8.19',
settings: COMPILER_SETTINGS,
},
'src/v0.8/workflow/dev/WorkflowRegistry.sol': {
version: '0.8.24',
settings: {
optimizer: {
enabled: true,
runs: 1000000, // see native_solc_compile_all_workflow
},
viaIR: true,
metadata: {
bytecodeHash: 'none',
},
},
},
},
},
mocha: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

import {WorkflowRegistry} from "../../src/WorkflowRegistry.sol";
import {WorkflowRegistry} from "../../dev/WorkflowRegistry.sol";
import {WorkflowRegistrySetup} from "./WorkflowRegistrySetup.t.sol";

contract WorkflowRegistry_activateWorkflow is WorkflowRegistrySetup {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

import {WorkflowRegistryManager} from "../../src/WorkflowRegistryManager.sol";
import {WorkflowRegistryManagerSetup} from "./WorkflowRegistryManagerSetup.t.sol";

import {Ownable2Step} from "@chainlink/contracts/src/v0.8/shared/access/ConfirmedOwnerWithProposal.sol";
import {Ownable2Step} from "../../../shared/access/Ownable2Step.sol";

contract WorkflowRegistryManager_activateVersion is WorkflowRegistryManagerSetup {
function test_RevertWhen_TheCallerIsNotTheOwner() external {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

import "@chainlink/contracts/src/v0.8/vendor/forge-std/src/Test.sol";

import {WorkflowRegistryManager} from "../../src/WorkflowRegistryManager.sol";
import {WorkflowRegistryManager} from "../../dev/WorkflowRegistryManager.sol";
import {Test} from "forge-std/Test.sol";

contract WorkflowRegistryManagerSetup is Test {
WorkflowRegistryManager internal s_registryManager;
Expand Down

0 comments on commit 9804fe8

Please sign in to comment.