Skip to content

Commit

Permalink
Remove artifacts resulting from calling solc from 2DProxy extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
GNSPS committed Aug 19, 2018
1 parent 4924648 commit a1ac062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ solc -o ./ --overwrite --optimize --bin "$filepath"

orig_bytecode=$(cat "${target_contract_name%.*}.bin")

rm "${target_contract_name%.*}.bin"

orig_bytecode_size=${#orig_bytecode}

if (( $orig_bytecode_size % 2 != 0 ))
Expand Down
2 changes: 2 additions & 0 deletions 2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ solc -o ./ --overwrite --optimize --bin "$filepath"

orig_bytecode=$(cat "${target_contract_name%.*}.bin")

rm "${target_contract_name%.*}.bin"

orig_bytecode_size=${#orig_bytecode}

if (( $orig_bytecode_size % 2 != 0 ))
Expand Down

0 comments on commit a1ac062

Please sign in to comment.