2023-01-16 17:06:25 +00:00
|
|
|
#use the solc compiler https://docs.soliditylang.org/en/v0.8.17/installing-solidity.html
|
|
|
|
# to compile all of the .sol files to their corresponding evm binary files stored as .hex
|
|
|
|
# solc outputs to stdout a format that we just want to grab the last line of and then remove the trailing newline on that line
|
2023-01-12 04:29:56 +00:00
|
|
|
|
|
|
|
find -type f -name \*.sol -print0 |
|
|
|
|
xargs -0 -I{} bash -c 'solc --bin {} |tail -n1 | tr -d "\n" > $(echo {} | sed -e s/.sol$/.hex/)'
|