From 2983926db935977170dd39ca48080bcee2c441cb Mon Sep 17 00:00:00 2001 From: DavidLuise Date: Mon, 16 May 2022 22:58:53 +0530 Subject: [PATCH] fix(ethers-solc/ConfigurableArtifacts): output methodIdentifiers by default (#1266) Related https://github.com/foundry-rs/foundry/issues/1497 --- ethers-solc/src/artifact_output/configurable.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ethers-solc/src/artifact_output/configurable.rs b/ethers-solc/src/artifact_output/configurable.rs index fba1074b..588d0533 100644 --- a/ethers-solc/src/artifact_output/configurable.rs +++ b/ethers-solc/src/artifact_output/configurable.rs @@ -113,7 +113,8 @@ impl<'a> From<&'a ConfigurableContractArtifact> for CompactContractBytecodeCow<' /// { /// "abi": [], /// "bytecode": {...}, -/// "deployedBytecode": {...} +/// "deployedBytecode": {...}, +/// "methodIdentifiers": {...}, /// // additional values /// } /// ``` @@ -290,13 +291,11 @@ impl ArtifactOutput for ConfigurableArtifacts { artifact_bytecode = bytecode.map(Into::into); artifact_deployed_bytecode = deployed_bytecode.map(Into::into); + artifact_method_identifiers = Some(method_identifiers); if self.additional_values.gas_estimates { artifact_gas_estimates = gas_estimates; } - if self.additional_values.method_identifiers { - artifact_method_identifiers = Some(method_identifiers); - } if self.additional_values.assembly { artifact_assembly = assembly; }