fix(ethers-solc/ConfigurableArtifacts): output methodIdentifiers by default (#1266)

Related https://github.com/foundry-rs/foundry/issues/1497
This commit is contained in:
Meet Mangukiya 2022-05-16 22:58:53 +05:30 committed by GitHub
parent adaa82ab9d
commit d7b9c59f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}