this seems to be very basic but I just can't figure out after trying different ways: I tried to forge build
and then forge test
the "0xMonaco challenge’s zip" file from https://0xmonaco.ctf.paradigm.xyz/howtoplay but it just wouldn't pass while throwing this error:
[⠊] Compiling...
[⠒] Compiling 13 files with 0.8.13
[⠘] Solc 0.8.13 finished in 1.61s
Compiler run successful
Running 1 test for test/Monaco.t.sol:MonacoTest
[FAIL. Reason: The path "logs/<filename>.csv" is not allowed to be accessed for write operations.] testGames() (gas: 1201982)
Test result: FAILED. 0 passed; 1 failed; finished in 3.98ms
Failing tests:
Encountered 1 failing test in test/Monaco.t.sol:MonacoTest
[FAIL. Reason: The path "logs/<filename>.csv" is not allowed to be accessed for write operations.] testGames() (gas: 1201982)
Encountered a total of 1 failing tests, 0 tests succeeded
Any ideas? Or anyone ran into this?
- Tried setting the folder permission setting to
read and write
- Tried
chmod 777 logs/<filename>.csv
(actually none of the files in the logs folder matches the no-permission file name, so i had to manually change them accordingly. But, also, this didnt work.