@@ -13,7 +13,7 @@ import "solidity-coverage";
1313import { config as dotenvConfig } from "dotenv" ;
1414import { NetworkUserConfig } from "hardhat/types" ;
1515import "solidity-docgen" ;
16- import { relative , resolve } from "path" ;
16+ import { relative } from "path" ;
1717
1818try {
1919 dotenvConfig ( ) ;
@@ -54,33 +54,6 @@ subtask(TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS).setAction(
5454 }
5555) ;
5656
57- // New subtask to define remappings
58- subtask ( TASK_COMPILE_GET_REMAPPINGS ) . setAction (
59- async ( _ , { config } , runSuper ) => {
60- console . log ( "=== TASK_COMPILE_GET_REMAPPINGS START ===" ) ;
61-
62- // Get default remappings (if any)
63- const remappings = await runSuper ( ) ;
64-
65- console . log ( "Type of remappings:" , typeof remappings ) ;
66- console . log ( "Remappings object:" , remappings ) ;
67-
68- // Add hardcoded remapping for OpenZeppelin
69- const openzeppelinPath = "../../../lib/openzeppelin-contracts/contracts" ;
70- console . log ( "Adding OpenZeppelin remapping:" , `@openzeppelin/contracts -> ${ openzeppelinPath } ` ) ;
71-
72- // Return the remappings object with our custom mapping
73- const newRemappings = {
74- ...remappings ,
75- "@openzeppelin/contracts/" : "lib/openzeppelin-contracts/contracts/" ,
76- } ;
77-
78- console . log ( "New remappings object:" , newRemappings ) ;
79-
80- return newRemappings ;
81- }
82- ) ;
83-
8457const chainIds = {
8558 "eth-mainnet" : 1 ,
8659 "eth-sepolia" : 11155111 ,
@@ -131,11 +104,7 @@ const config: HardhatUserConfig = {
131104 } ,
132105 } ,
133106 paths : {
134- root : "../../" ,
135- sources : "packages/ethereum-contracts/contracts" ,
136- artifacts : "packages/ethereum-contracts/build/hardhat" ,
137- tests : "packages/ethereum-contracts/test" ,
138- cache : "packages/ethereum-contracts/cache" ,
107+ artifacts : "build/hardhat" ,
139108 } ,
140109 networks : {
141110 "bsc-mainnet" : {
@@ -206,7 +175,6 @@ const config: HardhatUserConfig = {
206175 : undefined ,
207176 } ,
208177 typechain : {
209- outDir : "packages/ethereum-contracts/typechain-types" ,
210178 target : "ethers-v5"
211179 } ,
212180} ;
0 commit comments