diff --git a/2dproxy_bin/2dproxy_extractor.sh b/2dproxy_bin/2dproxy_extractor.sh index 5a248ac..21aba76 100755 --- a/2dproxy_bin/2dproxy_extractor.sh +++ b/2dproxy_bin/2dproxy_extractor.sh @@ -105,7 +105,7 @@ fi # Constructor bytecode extraction part # -extracted_ctor=$(echo "$orig_bytecode" | sed 's/\(f300\)\(.*\)/\1/') +extracted_ctor=$(echo "$orig_bytecode" | sed -E 's/(f300|f3fe)(.*)/\1/') extracted_ctor_size=${#extracted_ctor} diff --git a/2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh b/2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh index b32d51f..4cd019c 100755 --- a/2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh +++ b/2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh @@ -70,7 +70,7 @@ fi # Constructor bytecode extraction part # -extracted_ctor=$(echo "$orig_bytecode" | sed 's/\(f300\)\(.*\)/\1/') +extracted_ctor=$(echo "$orig_bytecode" | sed -E 's/(f300|f3fe)(.*)/\1/') extracted_ctor_size=${#extracted_ctor} diff --git a/2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh b/2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh index d923735..e108771 100755 --- a/2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh +++ b/2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh @@ -70,7 +70,7 @@ fi # Constructor bytecode extraction part # -extracted_ctor=$(echo "$orig_bytecode" | sed 's/\(f300\)\(.*\)/\1/') +extracted_ctor=$(echo "$orig_bytecode" | sed -E 's/(f300|f3fe)(.*)/\1/') extracted_ctor_size=${#extracted_ctor}