From a1ac062b485328a0df2c560075da6ee70d17c58d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20S=C3=A1?= Date: Sun, 19 Aug 2018 12:29:36 +0100 Subject: [PATCH] Remove artifacts resulting from calling `solc` from 2DProxy extractor --- 2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh | 2 ++ 2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh b/2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh index b4f2f01..b32d51f 100755 --- a/2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh +++ b/2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh @@ -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 )) diff --git a/2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh b/2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh index 1e62703..d923735 100755 --- a/2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh +++ b/2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh @@ -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 ))