You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
Contract2.sol is imported via import "./Conntract2.sol" in Contract1.sol:
pragma solidity^0.5.0;
import"./Contract2.sol";
contractContract1 {
uint256public value;
function increase() public {
value++;
}
}
but if run npm run compile on WIndows without WSL, it shows File import callback not supported
> oz compile
✖ Compiling contracts with solc 0.5.17 (commit.d19bba13)
Compilation errors:
contracts\Contract1.sol:3:1: ParserError: Source "Contract2.sol" not found: File import callback not supported
import "./Contract2.sol";
^-----------------------^
I know you guys recommend developing smart contract on Windows with WSL on openzeppelin forum, but deploy contract on dev network via openzeppelin cli is not really stable in my experience, I usually need to reboot WSL to deploy contract if it complain connection refused.
so it would be great if we can have native windows support for openzeppelin cli without WSL and I actually found a solution, pull request is coming.
The text was updated successfully, but these errors were encountered:
Hi @yurenju ! Thanks for the suggestion, it is really appreciated.
The project owner will review your suggestion as soon as they can.
We normally recommend to wait until we have discussed an idea before writing any code or submitting a Pull Request, so we can go through the design beforehand. We don’t want you to waste your time!
use relatively import on Windows without WSL does not work, for example: https://github.com/yurenju/oz-compile-failed-on-windows
Contract2.sol is imported via
import "./Conntract2.sol"
in Contract1.sol:but if run
npm run compile
on WIndows without WSL, it showsFile import callback not supported
I know you guys recommend developing smart contract on Windows with WSL on openzeppelin forum, but deploy contract on dev network via openzeppelin cli is not really stable in my experience, I usually need to reboot WSL to deploy contract if it complain connection refused.
so it would be great if we can have native windows support for openzeppelin cli without WSL and I actually found a solution, pull request is coming.
The text was updated successfully, but these errors were encountered: