Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 186b00c

Browse files
vubvub
authored andcommitted
Optimization in solidity by default
1 parent d85c7ba commit 186b00c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/_solidity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def mk_full_signature(cls, code, contract_name=''):
7979

8080
@classmethod
8181
def combined(cls, code):
82-
p = subprocess.Popen(['solc', '--add-std', '--combined-json', 'abi,bin,devdoc,userdoc'],
82+
p = subprocess.Popen(['solc', '--add-std', '--optimize', '--combined-json', 'abi,bin,devdoc,userdoc'],
8383
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
8484
stdoutdata, stderrdata = p.communicate(input=code)
8585
if p.returncode:

0 commit comments

Comments
 (0)