Skip to content

Commit

Permalink
fixed optimizer=true for solidity which was not working earlier in po…
Browse files Browse the repository at this point in the history
…pulus
  • Loading branch information
voith committed Jun 25, 2018
1 parent 79a7813 commit fb15afe
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
1 change: 0 additions & 1 deletion ico/tests/fixtures/flatprice.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ def uncapped_flatprice(chain, team_multisig, preico_starts_at, preico_ends_at, f

tx = {
"from": team_multisig,
"gas": 6000000,
}

contract, hash = chain.provider.deploy_contract('UncappedCrowdsale', deploy_args=args, deploy_transaction=tx)
Expand Down
1 change: 0 additions & 1 deletion ico/tests/fixtures/presale.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def presale_fund_collector(chain, presale_freeze_ends_at, team_multisig) -> Cont
]
tx = {
"from": team_multisig,
"gas": 4000000
}
presale_fund_collector, hash = chain.provider.deploy_contract('PresaleFundCollector', deploy_args=args, deploy_transaction=tx)
return presale_fund_collector
Expand Down
28 changes: 20 additions & 8 deletions project.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,18 +269,30 @@
"SolcAutoBackend": {
"class": "populus.compilation.backends.SolcAutoBackend",
"settings": {
"optimize": true,
"output_values": [
"abi",
"bin",
"bin-runtime",
"metadata"
],
"command_line_options": {
"allow_paths": "/"
},
"stdin": {
"evmVersion": "homestead"
"output_values": [
"abi",
"bin",
"bin-runtime",
"metadata"
],
"evmVersion": "homestead",
"optimizer": {
"enabled": true,
"runs": 500
},
"outputSelection": {
"*": {
"*": [
"abi",
"metadata",
"evm"
]
}
}
}
}
},
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ commands=flake8 ico
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/ico
TESTRPC_GAS_LIMIT = 6000000
deps =
-r{toxinidir}/requirements.txt
commands =
Expand Down

0 comments on commit fb15afe

Please sign in to comment.