kopia lustrzana https://github.com/bugout-dev/moonworm
fixed compile script
rodzic
4ffc952eb1
commit
b340c85bd5
|
@ -1,10 +1,9 @@
|
|||
#!/usr/bin/env sh
|
||||
#shitty bash code that compiles smart contract with solc
|
||||
#and puts bytecode to ../bytecodes and abi to ../abis folder
|
||||
tempdir=".temp"
|
||||
mkdir $tempdir
|
||||
tempdir="$(mktemp -d)"
|
||||
solc --abi --bin $1 -o "$tempdir"
|
||||
filename=${1%.*}
|
||||
cp "$tempdir/$filename.bin" "../bytecodes/$filename"
|
||||
cp "$tempdir/$filename.bin" "../bytecodes/"
|
||||
cp "$tempdir/$filename.abi" "../abis/$filename.json"
|
||||
rm $tempdir -r
|
Ładowanie…
Reference in New Issue