aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-tracing-utils/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-21 22:52:37 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-21 22:52:37 +0800
commitddb0e29253817c29e990a20750ce5c458a703e9f (patch)
treea149fae5ab4ec8f181311a66d20a5c0aed70c2a4 /packages/sol-tracing-utils/src
parent9d9ab2f1ee926d74df00799705bbecb39b2b5d99 (diff)
downloaddexon-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
Diffstat (limited to 'packages/sol-tracing-utils/src')
-rw-r--r--packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts4
1 files changed, 4 insertions, 0 deletions
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;