The following contract compiles with the basic ethereum solidity compiler, but not with the zkSync nethermind compiler.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
import {PriceConverter} from "./PriceConverter.sol";
contract FundMe {
using PriceConverter for uint256;
}
PriceConverter.sol:
library PriceConverter {
}
The error is:
Caused by: HardhatError: HH1005: Solidity source file latest/bbc35fe0dd6ddd9bffc725aa7a6bcffecfe134d2c86317a4d9295c158e24efcb/FundMe/PriceConverter.sol not found
at getSourceNameTrueCase (/hardhat_env/node_modules/hardhat/src/utils/source-names.ts:219:13)
at async validateSourceNameExistenceAndCasing (/hardhat_env/node_modules/hardhat/src/utils/source-names.ts:102:30)
at async Resolver._validateSourceNameExistenceAndCasing (/hardhat_env/node_modules/hardhat/src/internal/solidity/resolver.ts:529:7)
at async Resolver._resolveLocalSourceName (/hardhat_env/node_modules/hardhat/src/internal/solidity/resolver.ts:289:5)
at async Resolver.resolveImport (/hardhat_env/node_modules/hardhat/src/internal/solidity/resolver.ts:189:24)
at async /hardhat_env/node_modules/hardhat/src/internal/solidity/dependencyGraph.ts:188:28
at async Promise.all (index 0)
at async DependencyGraph._addDependenciesFrom (/hardhat_env/node_modules/hardhat/src/internal/solidity/dependencyGraph.ts:186:5)
at async Promise.all (index 0)
at async Function.createFromResolvedFiles (/hardhat_env/node_modules/hardhat/src/internal/solidity/dependencyGraph.ts:15:5)
Caused by: FileNotFoundError: File /hardhat_env/contracts/latest/bbc35fe0dd6ddd9bffc725aa7a6bcffecfe134d2c86317a4d9295c158e24efcb/FundMe/PriceConverter.sol not found
at getFileTrueCase (/hardhat_env/node_modules/hardhat/src/internal/util/fs-utils.ts:152:9)
at async getFileTrueCase (/hardhat_env/node_modules/hardhat/src/internal/util/fs-utils.ts:143:9)
at async getFileTrueCase (/hardhat_env/node_modules/hardhat/src/internal/util/fs-utils.ts:143:9)
at async getFileTrueCase (/hardhat_env/node_modules/hardhat/src/internal/util/fs-utils.ts:143:9)
at async getSourceNameTrueCase (/hardhat_env/node_modules/hardhat/src/utils/source-names.ts:215:22)
at async validateSourceNameExistenceAndCasing (/hardhat_env/node_modules/hardhat/src/utils/source-names.ts:102:30)
at async Resolver._validateSourceNameExistenceAndCasing (/hardhat_env/node_modules/hardhat/src/internal/solidity/resolver.ts:529:7)
at async Resolver._resolveLocalSourceName (/hardhat_env/node_modules/hardhat/src/internal/solidity/resolver.ts:289:5)
at async Resolver.resolveImport (/hardhat_env/node_modules/hardhat/src/internal/solidity/resolver.ts:189:24)
at async /hardhat_env/node_modules/hardhat/src/internal/solidity/dependencyGraph.ts:188:28
The following contract compiles with the basic ethereum solidity compiler, but not with the zkSync nethermind compiler.
PriceConverter.sol
:The error is: