mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
no --opcodes
This commit is contained in:
parent
bbe1af4c28
commit
2e22ddebeb
@ -20,8 +20,8 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
YULARGS=(--strict-assembly)
|
||||
FULLARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,hashes,metadata,opcodes,srcmap,srcmap-runtime,userdoc")
|
||||
OLDARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,interface,metadata,opcodes,srcmap,srcmap-runtime,userdoc")
|
||||
FULLARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,hashes,metadata,srcmap,srcmap-runtime,userdoc")
|
||||
OLDARGS=(--optimize --combined-json "abi,asm,ast,bin,bin-runtime,devdoc,interface,metadata,srcmap,srcmap-runtime,userdoc")
|
||||
|
||||
function compileFull
|
||||
{
|
||||
@ -148,7 +148,6 @@ function stripCLIDecorations
|
||||
sed -e '/^=======.*=======$/d' \
|
||||
-e '/^Binary:$/d' \
|
||||
-e '/^Binary of the runtime part:$/d' \
|
||||
-e '/^Opcodes:$/d' \
|
||||
-e '/^IR:$/d' \
|
||||
-e '/^Optimized IR:$/d' \
|
||||
-e '/^EVM assembly:$/d' \
|
||||
|
@ -221,7 +221,6 @@ json = re.sub(r"},(\n{0,1})\n*(\s*(]|}))", r"}\1\2", json)
|
||||
open("$stdout_path", "w").write(json)
|
||||
EOF
|
||||
sed -i.bak -E -e 's/ Consider adding \\"pragma solidity \^[0-9.]*;\\"//g' "$stdout_path"
|
||||
sed -i.bak -E -e 's/\"opcodes\":[[:space:]]*\"[^"]+\"/\"opcodes\":\"<OPCODES REMOVED>\"/g' "$stdout_path"
|
||||
sed -i.bak -E -e 's/\"sourceMap\":[[:space:]]*\"[0-9:;-]+\"/\"sourceMap\":\"<SOURCEMAP REMOVED>\"/g' "$stdout_path"
|
||||
|
||||
# Remove bytecode (but not linker references).
|
||||
|
Loading…
Reference in New Issue
Block a user