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 was 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.