Allow the target to be set to ewasm when --standard-json is specified
@@ -89,16 +89,18 @@ fn main() {
contracts: HashMap::new(),
};
- let target = if matches.is_present("STD-JSON") {
+ let target = match matches.value_of("TARGET") {
+ Some("substrate") => {
// This type of output is used by burrow deploy
+ if matches.is_present("STD-JSON") {
solang::Target::Burrow
} else {
- match matches.value_of("TARGET") {
- Some("substrate") => solang::Target::Substrate,
+ solang::Target::Substrate
+ }
+ }
Some("burrow") => solang::Target::Burrow,
Some("ewasm") => solang::Target::Ewasm,
_ => unreachable!(),
- }
};
if matches.is_present("VERBOSE") {
