diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-21 22:52:37 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-21 22:52:37 +0800 |
commit | ddb0e29253817c29e990a20750ce5c458a703e9f (patch) | |
tree | a149fae5ab4ec8f181311a66d20a5c0aed70c2a4 | |
parent | 9d9ab2f1ee926d74df00799705bbecb39b2b5d99 (diff) | |
download | dexon-0x-contracts-ddb0e29253817c29e990a20750ce5c458a703e9f.tar.gz dexon-0x-contracts-ddb0e29253817c29e990a20750ce5c458a703e9f.tar.zst dexon-0x-contracts-ddb0e29253817c29e990a20750ce5c458a703e9f.zip |
SolCompilerArtifactAdapter now doesn't return the ContractData for interfaces
-rw-r--r-- | packages/sol-tracing-utils/CHANGELOG.json | 6 | ||||
-rw-r--r-- | packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/packages/sol-tracing-utils/CHANGELOG.json b/packages/sol-tracing-utils/CHANGELOG.json index 2c2698e0e..c3c4bd058 100644 --- a/packages/sol-tracing-utils/CHANGELOG.json +++ b/packages/sol-tracing-utils/CHANGELOG.json @@ -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" } ] }, diff --git a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts b/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts index 4798f20a6..bf6dc3b2f 100644 --- a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts +++ b/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts @@ -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; |