Skip to content

Commit

Permalink
Support 0xfe as the safeguard stop opcode
Browse files Browse the repository at this point in the history
Fixes #1  but now absolutely won't work in GNU environments since it's using the `-E` flag in `sed` because the `sed` bundled with MacOS doesn't support alternation
  • Loading branch information
GNSPS committed Sep 21, 2018
1 parent 19838fe commit 0184e04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 2dproxy_bin/2dproxy_extractor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
2 changes: 1 addition & 1 deletion 2dproxy_bin/truffle/2dproxy_extractor_truffle_ctor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
2 changes: 1 addition & 1 deletion 2dproxy_bin/truffle/2dproxy_extractor_truffle_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 0184e04

Please sign in to comment.