aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-tracing-utils/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-23 04:20:02 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-23 04:20:02 +0800
commit3e910c0e0371589da3cf4a67b420c781a1338e59 (patch)
tree5e934cae368fecf86207e6c949f43a05eae64a70 /packages/sol-tracing-utils/src
parent7c47c52fac8b65c893d313587cf443c0e84bd8cb (diff)
downloaddexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.tar.gz
dexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.tar.zst
dexon-0x-contracts-3e910c0e0371589da3cf4a67b420c781a1338e59.zip
Refactor out isInterfaceContract
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, 2 insertions, 2 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 bf6dc3b2f..bfd3a504a 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,8 +66,8 @@ 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
+ const isInterfaceContract = contractData.bytecode === '0x' && contractData.runtimeBytecode === '0x';
+ if (isInterfaceContract) {
continue;
}
contractsData.push(contractData);