bug(cheatcodes): readFile
/ readAddress
not consistent depending of OS (Linux / Mac)
#6807
Labels
Milestone
readFile
/ readAddress
not consistent depending of OS (Linux / Mac)
#6807
Context
i'm using this piece of code to persist contract addresses on a deploy script:
to read/update the file
./contracts/broadcast/deployments.json
:Issue
I used to launch this script either from a linux PC(fedora) or from a macbook, and the json path is not interpreted the same depending of the OS the script runs from.
Caution
in some case we need to have a prefix
"$."
, in some case not.linux working code:
macos working code:
Otherwise, I have this kind of error (sample running without the
"$."
prefix on linux):As you can see, on linux we need to have the prefix
"$."
.Is this something i'm missing or a bug ?
The text was updated successfully, but these errors were encountered: