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 ))