I'm trying to run a test of my *.huff contract in win 10 environment. I have problems in HuffConfig.sol file in function binary_check(). There are two lines:
string[] memory bincheck = new string[](1); bincheck[0] = "./lib/foundry-huff/scripts/binary_check.sh"; bytes memory retData = vm.ffi(bincheck);
The problem is I cannot call "./lib/foundry-huff/scripts/binary_check.sh" in vm.ffi(bincheck).
I got:
[FAIL. Reason: setup failed: failed to execute command "./lib/foundry-huff/scripts/binary_check.sh": %1 is not a Win32 application. (os error 193)]
Interesting thing is that I can successfully call sth like this:
string[] memory bincheck = new string[](3); bincheck[0] = "echo"; bincheck[1] = "-n"; bincheck[2] = "lol"; bytes memory retData = vm.ffi(bincheck);
I suppose this issue should be addressed to foundry creators, but maybe someone of you got this error as well.
Is there any workaround, or should I definitely resign from Windows and switch to Linux.
I'm trying to run a test of my *.huff contract in win 10 environment. I have problems in HuffConfig.sol file in function binary_check(). There are two lines:
string[] memory bincheck = new string[](1); bincheck[0] = "./lib/foundry-huff/scripts/binary_check.sh"; bytes memory retData = vm.ffi(bincheck);
The problem is I cannot call "./lib/foundry-huff/scripts/binary_check.sh" in vm.ffi(bincheck). I got: [FAIL. Reason: setup failed: failed to execute command "./lib/foundry-huff/scripts/binary_check.sh": %1 is not a Win32 application. (os error 193)]
Interesting thing is that I can successfully call sth like this:
string[] memory bincheck = new string[](3); bincheck[0] = "echo"; bincheck[1] = "-n"; bincheck[2] = "lol"; bytes memory retData = vm.ffi(bincheck);
I suppose this issue should be addressed to foundry creators, but maybe someone of you got this error as well. Is there any workaround, or should I definitely resign from Windows and switch to Linux.