Give contract authors control over optimization passes
Created by: cmichi
Motivation
In src/cmd/build.rs
we currently pass the number of optimization passes 3
to binaryen
by default. However, it is desirable to give contract authors control over this setting. Hence we want to expose it on the cli.
ToDo
-
cargo contract build
should have an additional--optimization-passes
parameter which makes this variable customizable.