Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

solidity optimizer runs

solcjs --bin <sol-file-path> --optimize --optimize-runs <number-of-runs>
# <number-of-runs> can have a value [1, 2**32-1]
# a higher value increases initial deploy cost, but decreases contract call cost
# a lower value decreases initial deploy, but increases contract call cost
Source by docs.soliditylang.org #
 
PREVIOUS NEXT
Tagged: #solidity #optimizer #runs
ADD COMMENT
Topic
Name
3+3 =