Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
fix(ethers-solc/ConfigurableArtifacts): output methodIdentifiers by d…
Browse files Browse the repository at this point in the history
…efault (#1266)

Related foundry-rs/foundry#1497
  • Loading branch information
meetmangukiya authored May 16, 2022
1 parent adaa82a commit d7b9c59
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ethers-solc/src/artifact_output/configurable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ impl<'a> From<&'a ConfigurableContractArtifact> for CompactContractBytecodeCow<'
/// {
/// "abi": [],
/// "bytecode": {...},
/// "deployedBytecode": {...}
/// "deployedBytecode": {...},
/// "methodIdentifiers": {...},
/// // additional values
/// }
/// ```
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit d7b9c59

Please sign in to comment.