Closed emretepedev closed 1 year ago
I set the root path in my hardhat config. hardhat.config.ts
hardhat.config.ts
const config: HardhatUserConfig = { paths: { root: './src', }, exposed: { prefix: 'x_', }, }
This is my Example contract. src/contracts/Example.sol
src/contracts/Example.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Example { address private foo = address(this); }
But it seems the wrong path when importing the base contract. Expected src/contracts-exposed/Example.sol output:
src/contracts-exposed/Example.sol
import "../contracts/Example.sol"; contract X_Example is Example { // ... }
Actual src/contracts-exposed/Example.sol output:
import "../../contracts/Example.sol"; // <--- wrong path here contract X_Example is Example { // ... }
Any update here?
I can't use this plugin because of this issue.
You tried to change the prefix for "_"?
Fixed in 0de23e8b4c8f110042d4351c14e83c9567eefe20.
I set the root path in my hardhat config.
hardhat.config.ts
This is my Example contract.
src/contracts/Example.sol
But it seems the wrong path when importing the base contract. Expected
src/contracts-exposed/Example.sol
output:Actual
src/contracts-exposed/Example.sol
output: