SolCompilerArtifactAdapter now doesn't return the ContractData for interfaces
This commit is contained in:
@@ -3,12 +3,16 @@
|
||||
"version": "6.0.0",
|
||||
"changes": [
|
||||
{
|
||||
"note": "`SolCompilerArtifactsAdapter` now uses `SolResolver` under the hood which allows to resolve `NPM` dependencies properly",
|
||||
"note": "`SolCompilerArtifactAdapter` now uses `SolResolver` under the hood which allows to resolve `NPM` dependencies properly",
|
||||
"pr": "TODO"
|
||||
},
|
||||
{
|
||||
"note": "Cache the `utils.getContractDataIfExists` leading to faster execution",
|
||||
"pr": "TODO"
|
||||
},
|
||||
{
|
||||
"note": "`SolCompilerArtifactAdapter` now doesn't return the `ContractData` for interfaces",
|
||||
"pr": "TODO"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@@ -66,6 +66,10 @@ export class SolCompilerArtifactAdapter extends AbstractArtifactAdapter {
|
||||
runtimeBytecode: artifact.compilerOutput.evm.deployedBytecode.object,
|
||||
sourceMapRuntime: artifact.compilerOutput.evm.deployedBytecode.sourceMap,
|
||||
};
|
||||
if (contractData.bytecode === '0x' && contractData.runtimeBytecode === '0x') {
|
||||
// That's an interface contract
|
||||
continue;
|
||||
}
|
||||
contractsData.push(contractData);
|
||||
}
|
||||
return contractsData;
|
||||
|
Reference in New Issue
Block a user